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

How to create internal links in me site


Go to End


4 Posts   2019 Views

Avatar
Slimo

Community Member, 8 Posts

4 April 2011 at 6:27pm

i have three

homepage > page 1 > subpage 1
> subpage 2
> page 2
> subpage 3

how i create link from subpage 1 to subpage 3 thanks

Avatar
dendeffe

Community Member, 135 Posts

5 April 2011 at 9:17pm

When you are in a TinyMCE field, add a link and select Page on the site from the side panel: https://skitch.com/dendeffe/r2pad/silverstripe-cms-pages

Avatar
Slimo

Community Member, 8 Posts

5 April 2011 at 9:24pm

thanks
I think in SS template

$Subpage1.link

Avatar
dendeffe

Community Member, 135 Posts

5 April 2011 at 9:37pm

You might get this to work with a combination of <% control parent %><% control children %> (not sure, check the reference: http://doc.silverstripe.org/sapphire/en/reference/built-in-page-controls)

If that doesn't work, you'll need to program it in the controller.