3212 Posts in 847 Topics by 809 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1284 Views |
-
$URLsegment and nested urls

26 April 2010 at 10:46am
(Sorry for crossposting, I just responded to a similar question in the Data Model Questions and later realized that template questions was a better place for this.)
I used to use 'Link' => Director::baseURL() . $page->URLSegment to construct an url to translations of a page.
However this does not work with nested urls because you get www.mydomain.com/sub-page/ instead of www.mydomain.com/parent-page/sub-page/
Any advice on how to make that work? Can I create a link based on the id of a page?
| 1284 Views | ||
|
Page:
1
|
Go to Top |
