Maybe I have overlooked something, but I guess there is no way to build an automatic navigation in Pulse.
To explain what I mean: In many CM systems, you put a code, building block or whatever to the place where the navigation should appear. From that moment on, new pages appear in the navigation automatically. But the key point is, that the current page (the actual page where the user is on) is marked (in another color, bold or whatever is set in the CSS).
I could build this with PHP, like I did for a site without any CMS:
Thanks - for the backend yes, Pulse 5 will have navigation improvements such as re-ordering the navigation bar with drag and drop, instead of having to hand code it in a block. But that would still work if preferred.
As for the highlighting page in use on the frontend nav ⌠@JRAYCV once did that (in JS I think) on the old forum. He might be able to share this solution with you
Iâve done this a few different ways in the past both with PHP (like your example), in JavaScript and more recently in CSS. What I tend to do is add a class style to the body tag that denotes the page we are on;
<body class="home">
Then my menu gets structured like this with a class for each link target;
`
@TimPlumb:
Ah, yes, I remember something I read in a CSS book (Little Boxes) some time ago. The soution was similar to yours, but without PHP, so youâd have to write a class name for the body and the navigation list on every page. Thatâs okay for small websites, but not for large ones with many pages. The CSS would be:
body.home a.home,
body.work a.work,
body.sleep a.sleep
{
color:#f00; /* or whatever for my active links */
}
But my issue is: Every time my client creates new pages, Iâd have to change the PHP code for the navigation. Actually what I am asking is: Almost all content management systems I know, even those without a database, offer an automatic navigation, which means that as soon as the user creates a new page. this page is shown in the navigation. I would like to find such a feature in Pulse also, if thatâs not asking too much.
Thank you, Michael (@pulsecms), am looking forward to Pulse 5, I think itâs gonna be very nice. Already told my client, that there will possibly be an autonav in version 5.
I am certainly looking forward to some improvements in this area. At present if client wants to create a new page the process is still difficult compared to WordPress for instance.
Create new block
Create new page for block
Create new menu item
However one of the great strengths of Pulse is its versatility and although we could have a system that added a top level menu item when a new page was created, how would it deal with sub menus like I have here for instance?
On this site I have main menu and several other ones for houses, churches etc.
I also have a couple of WordPress sites with submenus, and context sensitive ones, and even on that it is not an easy task to add and edit menus. Although at least it can be done without having to deal with it at code level. Still tricky though.
On my Minerva site each page has reference to a particular SB_menu so I guess that a new page would have to have an automatic way to reference this as a template. So in fact the process would be quite different from what exists now.
We would need a new type of page creation process that used templates. Which may well be thinking about I reckon. That way we developers could create a bunch of these and let the client have at it.