2985 Posts in 761 Topics by 740 members
Template Questions
SilverStripe Forums » Template Questions » How i can get a Link to Another SiteTree page in my Template
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 89 Views |
-
How i can get a Link to Another SiteTree page in my Template

15 December 2011 at 9:33am
Hello
I guess this is a very noob question, I was looking in the forums but I don't get any answer or approach, basically one of my pages has many links to another sections, is like my home has links to News, Pictures, there is a someway in template to get the Sitetree link for a specific page?
I tried:<% control Page(SomePage) %>$Title
<a href="$Link.Link">All News</a>
<% end_control %>But nothings, maybe I'm just tired and need to rest to find the magic word, there is a buil-in funct for this?
Thanks in advance
-
Re: How i can get a Link to Another SiteTree page in my Template

17 December 2011 at 5:15am
If I got you right, you just need to use $Link instead of $Link.Link
greets
| 89 Views | ||
|
Page:
1
|
Go to Top |

