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.

Template Questions /

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

changing links from /some-page/ to [sitetree_link id=340]


Go to End


1098 Views

Avatar
webmmsd

Community Member, 10 Posts

7 March 2012 at 7:55am

Hello,

If I have links(within the site) on a page called out as href="/sailing-adventures/" but I want to change them all to sitetree links like this href="[sitetree_link id=340]"

Is there a fast way for me to figure out what the appropriate sitetree link is for each page short of having to do it manually thru the editor>insert link>Link menu>page on this site>and so on?

Or would a better question be, how does silverstripe determine the sitetree link for each page, and can I view this sitetree with all the link names?

Thank you,
Alex

Attached Files