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

Displaying more info about a page in Menu(2)


Go to End


1402 Views

Avatar
micahsheets

Community Member, 165 Posts

2 December 2008 at 12:24pm

Edited: 02/12/2008 12:27pm

I have added a Description field to the cms for one of my page types. I want to display this description next to the link in the Menu(2) list. I know how $MenuTitle works, but how do I get the $description for the list items when using <% control Menu(2) %>

Edit:

Sorry I made a simple mistake that was keeping this from working the way I expected. I have now figured it out by actually saving the page so that the $description variable actually gets some data from the database.