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.

Customising the CMS /

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

Add all pages to a droppdown field


Go to End


2 Posts   1350 Views

Avatar
jacobnolan

Community Member, 3 Posts

2 April 2016 at 12:00pm

Hello,

I am trying to give a user linking ability to existing pages. I thought it would be nice to use a dropdown field. I am having trouble populating the dropdown with all of the page names. Ideally, I would like to display page names to the user, but actually return the page URL into the page. Any help in this matter is greatly appreciated. Thank you!

Avatar
jacobnolan

Community Member, 3 Posts

2 April 2016 at 1:01pm

Edited: 02/04/2016 1:02pm

I found an answer actually after some deeper digging.

http://www.silverstripe.org/community/forums/general-questions/show/7422