324 Posts in 148 Topics by 156 members
Migrating a Site to Silverstripe
What you need to know when migrating your existing site to SilverStripe.
|Go to End|
19 March 2009 at 8:34am
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!
20 March 2009 at 4:39am Last edited: 20 March 2009 12:05pm
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.
|Go to Top|