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.

Customising the CMS

How do you link to another part of the page?


Reply

4 Posts   946 Views

Avatar
salbelle

22 January 2010 at 5:18pm Community Member, 6 Posts

I'm pretty new to Silverstripe and all things web-like so be gentle!

I'd like to make a page that has headings at the top that each link to another part of the same page (i.e. Accommodation would link to appropriate info half way down the page). It has a lot of information on it hence the need for links.

Is this possible on Silverstripe??

Avatar
CodeGuerrilla

22 January 2010 at 7:19pm Community Member, 105 Posts

Hi salbelle,

Read the following at let us know if you need further help:

[url=http://doc.silverstripe.org/doku.php?id=templates&s=url%20fragments#fragment_link_rewriting]Fragment link rewriting[/url]

Avatar
salbelle

25 January 2010 at 11:50am Community Member, 6 Posts

Thanks!
None of the links seem to be working on this page - is there somewhere else I can see some examples of this?
I'm pretty unsure of HTML as I didn't set up this site and any coding I do doesn't seem to work. Is it the only way to do this or is there an alternative?

Avatar
theAlien

26 January 2010 at 2:40pm Community Member, 131 Posts

You might also want to read up on [url=http://www.w3schools.com/HTML/html_links.asp]anchors[/url],
because that's what you want to do: link to an anchor somewhere halfway the page.

Good luck