7 January 2009 at 9:45pm
I have the following line:
$fields->addFieldToTab('Root.Content.Main', new OptionsetField('Link', 'Link to page:', DataObject::get('Page'),'URLSegment'));
This list all the pages on my site, only I don't want the list to output the page type (like Page, Article Page, Image Page etc.), but the page URLSegment. How can I get the URLSegment of each page insted where the DataObject::get('Page') is now?