3214 Posts in 848 Topics by 810 members
| Go to End | ||
| Author | Topic: | 3412 Views |
-
Re: How to create a link to an id

13 November 2009 at 3:29am
Thanks for advice...
I just came up with a solution wherby I changed this
new DropdownField('StoryUrl','Select Url:',DataObject::get("SiteTree")->toDropdownMap()),
to this
new DropdownField('StoryUrl','Select Url:',DataObject::get("SiteTree")->toDropdownMap("URLSegment", "Title")),
and now it saves the URLSegment straight off and I do not have to worry about getting link from ID....
Not sure if my way is ideal so I may well have to use your code so Thanks again.
| 3412 Views | ||
| Go to Top |

