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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Newsletter Signup in Sidebar


Go to End


5 Posts   3454 Views

Avatar
mhull

Community Member, 79 Posts

25 November 2008 at 7:40am

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

Community Member, 79 Posts

25 November 2008 at 10:17am

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

Avatar
mhull

Community Member, 79 Posts

25 November 2008 at 12:15pm

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

Community Member, 79 Posts

25 November 2008 at 8:54pm

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

Community Member, 79 Posts

25 November 2008 at 11:09pm

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?