Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Newsletter Signup in Sidebar


Reply

5 Posts   2812 Views

Avatar
mhull

25 November 2008 at 7:40am Community Member, 79 Posts

I have looked through the forum, and been looking at http://doc.silverstripe.com/doku.php?id=recipes:forms on how to make a form. But I am looking to put a form in the sidebar of the page.

This one seems unanswered: http://www.silverstripe.com/site-builders-forum/flat/89383?start=8 but seems the easiest method. Does anyone know how to get it working? Or what I should be looking to do?

Avatar
mhull

25 November 2008 at 10:17am Community Member, 79 Posts

What is the best way to get a newsletter sign up in the sidebar? Can anyone shed any light on this?

Avatar
mhull

25 November 2008 at 12:15pm Community Member, 79 Posts

So I have this form
http://doc.silverstripe.com/doku.php?id=recipes:forms
saved in <mysite>/code/RegistrationForm.php

and I am calling it in my sidebar with:

<% control Page(Subscribe) %>
inside Subscribe Page
$SubscribeForm
<% end_control %>

I have also tried making a subscription form in the usual way and calling the page into the sidebar.

Both don't seem to be working.

Avatar
mhull

25 November 2008 at 8:54pm Community Member, 79 Posts

So I can see the text "inside Subscribe Page" and if I change $SubscribeForm to $Title it is showing the title. But it won't show the form.

Avatar
mhull

25 November 2008 at 11:09pm Community Member, 79 Posts

So I have this in my sidebar:

<% control Page(subscribe) %>
    $Subscribe
<% end_control %>

which is giving me: 0

Can anyone tell me how to get a form in the Sidebar?