I have two menus, one Main Navigation and then the Second Menu with the "children" (Drupal calls it that) of the Main Navigation. I would like that if i press something in the main navigation, it will go straight to the first "child".
no the navigation ALWAYS behaves like this. there simply isn't any products-page, I just want "Products" (for example) to go to the first product. and all pages similar to Products with sub-pages will behave the same way.
I hope it's possible because I've done three websites with navigation this way and I'll rebuild them all with Concrete when/if this is possible.
About
Product 1
Product 2
History
Something
Whatever
and you want, when clicking on About, to go to Product 1 instead of About, this will give you what you want. It does so by linking you directly to /about/product1/. If you manually go to /about/, you will not be forwarded on to product1/ (just so you know).
To get this to work, do the following.
1. go into the dashboard, and create a page attribute with the handle "replace_link_with_first_in_nav." Make sure this page attribute type is a check box.
2. Go the page you want to jump FROM (in your example Press, I believe) and add the page attribute to the page, and turn it on.
From then on, whenever press is listed in the nav, clicking on it should take you to the first child of Press, rather than press itself.
(sorry, it's early) - you're right...they should be, hopefully along with some other attributes that the system uses (for example...the page list in 5.2 can access an "is_featured" check box page attribute to only display certain pages tagged as "featured"..
Then the purpose of a menu item with a sub nav would simply be to open the sub nav, not actually link to any page.
That way, you don't have to create a landing page for every sub nav, or a menu system that has duplicate links.
As in the case above, every time a sub nav is further divided, the problem is recreated, so that the 1st child of the sub nav still remains a landing page.
This post has been a huge help as I have been trying to work out how to do this for some time.
I was just curious what other tricky little built in functions like this are in Concrete5 and not very well documented at this stage.
I know it is a big ask and I love the CMS one way or the other but it would be great to see a little cheat sheet page made with these sort of tricky little functions for ongoing reference.
Just a thought and I don't mean to be asking for massive work hours by someone else, I am a little new to this CMS and love all these built in features, just can't seem to find theme on my own.
did you ever get any code to push you down "two" child pages, or are you still stuck with a single page down replace_link_with_first_in_nav???
i really need to have it when you click on projects(top menu) it take you to residential/project1, currently replace_link_with_first_in_nav will take me to residential, but i want it to take me a step further. can anyone help with this?
You just have to add an attribute yourself and name it "replace_link_with_first_in_nav" and then it will appear on your list of options for each page just like "remove from nav" or adding metatags, ect.
To add the attribute, Click the Pages & Themes button on the left of the dashboard, then click the Page Types tab at the top of the next screen, then click the Add Attribute button on the bottom.
Then, go to the page you want to redirect, click Properties and add the new Attribute from the dropdown menu. Then, click the little checkbox that appears "Yes." Once you select it, voila, it will redirect to the first child.
In order for this to work I think it has to be a Parent with Children (ie. it must be a yellow folder with contents inside if you're viewing Sitemap). Maybe not, maybe otherwise it will just jump to the next page in the page order.
Did you ever figure this out? I find myself in the same exact situation today.
If you didn't figure it out, I think what I'm going to do is apply the replace_with_first_in_nav to 2 pages in a row so it will hopefully skip one and then the other.
:) That's the same advice I gave the OP. He needed to skip not 1 but 2 pages. And now I find myself in the same situation. So, it would be something like replace_with_second_in_nav (if that were possible).
so like
About
Our History
Press
Contact
Products
Services
but when I click on about, i get dumped to our history?
That's doable, but it probably means messing around with some template files.
does the navigation ALWAYS behave that way? (for example, is there a product page, or does clicking product above take me to the first product)