Jump to:

23459 Posts in 18906 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Very basic question how to link back to holder...

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1443 Views
  • zim
    Avatar
    Community Member
    135 Posts

    Very basic question how to link back to holder... Link to this post

    This is such a basic question but I can't figure out how to link back to my holder page from pagination

    I have the following.... what do i put in for the Section Home link. Thanks. Sorry for such basic question

    <% control PrevNextPage(prev) %>
    <a href="$Link" mce_href="$Link" title="Go to $Title"><< previous page</a>
    <% end_control %>

    <a href="" >Section Home</a>

    <% control PrevNextPage(next) %>
    <a href="$Link" mce_href="$Link" title="Go to $Title">next page >> </a>
    <% end_control %>

    what do i put in for the Section Home link. Thanks. Sorry for such basic question

  • Pigeon
    Avatar
    Community Member
    243 Posts

    Re: Very basic question how to link back to holder... Link to this post

    Hi zim,

    I'm not sure if you just want to get back to the first page of the pagnation or the parent page.

    If it is the first page of the pagnation (the normal holding page people will go to unless they specify to go to one of the pagnated pages) then you want:

    $URLSegment

    If it is the parent, then:

    $Parent.URLSegment


    should work.

  • Mo
    Avatar
    Community Member
    508 Posts

    Re: Very basic question how to link back to holder... Link to this post

    I thought it was:

    $Top.URLSegment

    ?

    Edit: ON reading this again, I think $Parent is probably the right solution, sorry

  • zim
    Avatar
    Community Member
    135 Posts

    Re: Very basic question how to link back to holder... Link to this post

    Hi Guys,

    it's $Parent.URLSegment

    Thanks!!

    1443 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.