5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 483 Views |
-
How to use this UrlSegment-Transformation with another Field than Title

24 March 2011 at 8:21am
HI,
I want another field than Title to be taken as reference for the URLSegmet.
My Field is called Typ which is a dropDown Field.
The selected value has to become the URLSegment.
If I put the selected value into URLSegemet on BeforeWrite it doesn't make the transformation (ü->ue, '->-,etc)
How can I fix this?
Thanks in advance
Salut
Lukin -
Re: How to use this UrlSegment-Transformation with another Field than Title

31 March 2011 at 12:11am
Hi Lukin,
You can use:
SiteTree::generateURLSegment($this->YourField);
Hope that helps,
Aram
www.ssbits.com - Your one stop SilverStripe learning resource.
| 483 Views | ||
|
Page:
1
|
Go to Top |


