Jump to:

324 Posts in 153 Topics by 156 members

Migrating a Site to Silverstripe

SilverStripe Forums » Migrating a Site to Silverstripe » New SS User: Migrating first site to SS, question on navigation

What you need to know when migrating your existing site to SilverStripe.

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

Page: 1
Go to End
Author Topic: 1523 Views
  • ImacSS
    Avatar
    Community Member
    35 Posts

    New SS User: Migrating first site to SS, question on navigation Link to this post

    New SilverStripe user, pretty interested in what I have seen so far with this CMS. I've run through the tutorials, which were excellent in terms of getting started.

    To continue my learning process, I figured I would port a couple of small (fairly static) websites.

    The first site I have has a pretty simple navigation - but it has a wrinkle that I can't seem to figure out how to implement with SilverStripe

    Navigation is laid out as so:

    Root Nav A
       Sub Nav A1
       Sub Nav A2
       Sub Nav A3
       Sub Nav A4

    Root Nav B
       Sub Nav B1
       Sub Nav B2

    Root Nav C
       Sub Nav C1
       Sub Nav C2
       Sub Nav C3
       Sub Nav C4

    Now, here's the goofy part - the client decided that they wanted "Sub Nav A1" to be the landing page for "Root Nav A".
    So if you click on either "Root Nav A", or "Sub Nav A1" it would take you to the same location.

    Having difficulty in determining how to achieve this functionality with SilverStripe. If I make "Root Nav A" a "Virtual Page" with the intent of having it link to the "Sub Nav A1" page, then I cannot select "Sub Nav A1" page as it no longer appears on the list (Apparently, only "Page" page types are allowed to have sub pages?).

    If I change the page type of "Sub Nav A1" to be a "Virtual Page" with the intent of linking it to the "Root Nav A" content, then I cannot set a custom "Sub Nav A1" title - as it just replicated the title given to "Root Nav A".

    Do I need to create a custom page type in order to achieve what I want here? Or am I missing something really obvious?

    Appreciate any assistance anyone can give - thanks!

  • ImacSS
    Avatar
    Community Member
    35 Posts

    Re: New SS User: Migrating first site to SS, question on navigation Link to this post

    Well - it appears it was too easy of a question...

    As aram pointed out in the Template forum, all I need to do is make the "Root Nav A" page a Redirector Page and have it point to the "Sub Nav A" page.

    This makes the link for the "Root Nav A" page show up as pointing to the "Sub Nav A" page when moused over.

    Silly me...

    1523 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.