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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

dropdownfield simple dropdown questions

Go to End

2 Posts   1444 Views


Community Member, 224 Posts

5 January 2010 at 5:51pm

Edited: 05/01/2010 6:08pm

I have search the forum for help on this and there seems to be a lot of info, however, I just don't get it.

On the main tab in the editor, I want a dropdown with 3 choices.

Default Footer
Custom Footer
No footer

In my template I will setup an IF to check which of the three where selected - Defaulted to Default Footer

I need to expand a little. I am setting up two editors on a Page Footers tab. HtmlEditorField in a PageGlobal.php file that contains my global settings.

The top editor is my default - new HtmlEditorField('MyFooter',...
The bottom editor will be the custom - new HtmlEditorField('MyCustFooter',...

The Default Footer option will use the content from the top editor, the Custom Footer will use the bottom editor. And No Footer will bypass the code in the template.

I know how to add the code to the template.


Question? What is the difference between ...

public static




Community Member, 224 Posts

5 January 2010 at 7:45pm

I decided to go another direction