17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1164 Views |
-
Meta Links and other Links not possible?

25 July 2008 at 1:32am Last edited: 25 July 2008 2:47am
Hello
is it impossible to make in SilverStripe diffrent Link-Categories? I have my Mainmenu und then the Submenus. That's no problem. But I dont want to write the meta links and other links wich are not for mainmenu or submenus directly in the *.ss file. I would like to adminsitrate this links also in SilverStripe. Is this possible? Or can we only make normaly links (e.g Link -> Sublink -> Subsublink etc.)?
-
Re: Meta Links and other Links not possible?

28 July 2008 at 1:08pm
You might need to explain your answer more clearly?
I read it as you want to have a list of links which you can manage in the CMS and have them show on the site?
What you could do is create a Page called Links then under this page create subpages of Page type 'RedirectorPage' page which point to the pages you want to link to.
Then in the template you can do
<% control ChildrenOf(Links) %>
<a href="$Link">$Title</a>
<% end_control %>Which will output a list of all the Children Pages of your Links Page so if you want to add another link you would click Links then go Create Page of type RedirectorPage. You can then sort and edit/delete like you would normal pages
| 1164 Views | ||
|
Page:
1
|
Go to Top |


