Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

Very basic question how to link back to holder...


Reply


4 Posts   1507 Views

Avatar
zim

Community Member, 135 Posts

30 October 2009 at 12:42am

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

Avatar
Pigeon

Community Member, 243 Posts

30 October 2009 at 1:06am

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.

Avatar
Mo

Community Member, 514 Posts

30 October 2009 at 3:31am

Edited: 30/10/2009 3:37am

I thought it was:

$Top.URLSegment

?

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

Avatar
zim

Community Member, 135 Posts

30 October 2009 at 3:39am

Hi Guys,

it's $Parent.URLSegment

Thanks!!