Jump to:

3439 Posts in 1028 Topics by 869 members

Template Questions

SilverStripe Forums » Template Questions » How i can get a Link to Another SiteTree page in my Template

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 486 Views
  • arturnav
    Avatar
    Community Member
    1 Post

    How i can get a Link to Another SiteTree page in my Template Link to this post

    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

  • Bob Martin
    Avatar
    Community Member
    5 Posts

    Re: How i can get a Link to Another SiteTree page in my Template Link to this post

    If I got you right, you just need to use $Link instead of $Link.Link

    greets

    486 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.