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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Showing my dropdown? Almost there..


Go to End


2 Posts   1526 Views

Avatar
Rawbit

Community Member, 52 Posts

13 March 2009 at 5:00am

I'm trying to show my dropdown results on my Page.ss - I have made a dropdown for the backend called MyPageColorScheme that goes on the behavior tab:
http://pastie.org/414236

This works perfectly. I see the dropdown in the CMS behavior tab and it is saving my choice per page. Now I'm just having a hard time printing this value (Red,blue,green etc) on my page.ss - I have tried $Colors but no luck, also tried $MyPageColorScheme

Any ideas?

Avatar
Rawbit

Community Member, 52 Posts

13 March 2009 at 7:44am

Edited: 13/03/2009 7:44am

SOLUTION:

IRC >> <simon_w> add a Colors Varchar to your $db array

Thanks simon