Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Meta Links and other Links not possible?

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1252 Views
  • cihan
    Avatar
    Community Member
    9 Posts

    Meta Links and other Links not possible? Link to this post

    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.)?

  • cihan
    Avatar
    Community Member
    9 Posts

    Re: Meta Links and other Links not possible? Link to this post

    Hello

    nobody knows an anwser?

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Meta Links and other Links not possible? Link to this post

    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

  • SilverRay
    Avatar
    Community Member
    167 Posts
    1252 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.