Customising the auto-nav: page attributes and listing by parent

Permalink
Hi,

I've had a reasonable amount of experience with templating in WordPress, but this is only the second site I've built with Concrete5 and I can't seem to get my head round how to solve a couple of problems, nor can I find what I'm looking for in the documentation.

There are two things I'd like to achieve:

1. A main menu that includes all pages immediately below home, and includes a custom attribute (menu_description) in the link. Ideally the outputted code for each would look something like this:

<li><a href="/contact"><strong>Contact</strong> <em>how to get in touch</em></a></li>



2. A sub-menu that shows the siblings of the current page, as well as all pages at the level above (but not their children). If my page structure looks like this:

Clothes
   - Trousers
      - Jeans
      - Shorts
      - Chinos
   - Accessories
      - Hats
      - Gloves
      - Scarves
   - Tops
      - T-shirts
      - Hoodies
      - Sweaters


When I'm on the page "Gloves", the outputted list should look like this:

- Trousers
- Accessories
   - Hats
   - Gloves
   - Scarves
- Tops


I did briefly consider just using .nav-path-selected to hide the extraneous list items, but it wouldn't be a very elegant solution and I'd like to learn how to do it properly.

I would be quite happy to hardcode either of these menus into the template if it makes it simpler - the client won't need to customise them any further.

Thank you!

 
Blenderite replied on at Permalink Reply
Blenderite
Sorry it took me so long to get back to you.

I have this sample site and I put a example on there of how to do the second one. I am not sure about the first question.

http://nimd.concrete5.arvixe.com/...