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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

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


Go to End


4 Posts   2433 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
dhensby

Community Member, 253 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, 541 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!!