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

How to create internal links in me site


Reply


4 Posts   1028 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.