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.

General Questions /

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

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

Showing my dropdown? Almost there..


Reply


2 Posts   1070 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