5099 Posts in 1519 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1412 Views |
-
Page list optionfield

7 January 2009 at 9:45pm
Hi!
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?
-
Re: Page list optionfield

7 January 2009 at 9:56pm Last edited: 7 January 2009 9:56pm
Found the solution. Logically you can do DataObject::get('Page')->column('Title') or DataObject::get('Page')->column('URLSegment') to solve this
| 1412 Views | ||
|
Page:
1
|
Go to Top |

