I know this has been covered before, but I’m busy setting up a new site that relies heavily on this module, and I want to do this the cleanest way from the beginning.
Has any progress been made in handling subnavigation—that is, a {static_page_path direction=“post” /} that only shows the children of the active parent? I see the previous PHP solution but I really desperately want to keep it simple. Is this going to make it into the module itself anytime soon? Or has somebody thought of a brilliant solution that I’ve missed?
Thanks for the reply Mark! I understand now, I misunderstood the scope of the module/plugin. The main reason for the different weblogs is simply the massive differences in the data that needs to be on these pages. What I think I may do in that case is make them all “dynamic”. This will allow a “1 entry” to appear after the category in the list so at least the client will still be able to go to an edit list and see the one entry. This will allow me to keep the pages structure which they will still find very useful!
I fixed that prblem and managed to get the static pages working fine - thank you.
I now have another problem. I have an include for a header with a conditional statement to show a class=‘current’ dependant on the segment_1 - this works fine on all pages except the static page. The code for the header is below: Services and Accesibility are using static page and are the only two which do not work.
I’m working with the page attribute of the static_page_path plugin. It seems to parallel the category attribute of the exp:weblog:entries tag. I wonder if it would be possible to add support for specifying multiple values for page in the same way? That is:
And as with some of the other parameters, you can stack categories to get entries with any of those categories:
category="2|45|4|9"
Or use “not” to exclude categories
category="not 4|5|7"
And, you can use an inclusive stack to only get entries with all of the categories:
category="3&7&8"
Or you can negate the inclusive stack and get entries that do not of all of those categories:
category="not 3&5"
Now, in my case, I wrote my own “pages_navigation” plug-in, 90% of which is your pi.static_page_path.php, but which does a few things differently. So if you did add this functionality, I would then steal it and put it into my plugin.
Finally: the problem I’m trying to solve, in case you’re curious, is that our site has both a top navigation bar and a side navigation bar. Both bars contain static pages. But because I can only specify a single category group to use with Pages, all of the static pages are in the same group. This causes problems because I want only some of them to appear in the automatically-generated top nav, and the rest in the side nav.
Have you tried using the depth= attribute to specify the top nav only pulls in a depth of “1” and maybe the side nav starts at a parent category named subnav and pulls all the children of subnav?
No, I never thought of that. Sigh. So I’d need two ‘parent’ folders in my static page category, one for top nav and one for side nav. Otherwise one or the other of the navs would contain the other.
It’s not optimal, because it adds a layer of categories into my content which is based only on presentation, but it would work.
This whole idea may be doomed, though; ultimately my users are going to want items in the nav bar which aren’t pages at all, but links to other web sites. I can see it coming.
Great module, sorry to have to ask this, but I am stuck.
I have been working on this for a couple of days. So far I am able to see my static entries by following the View page link, and have mixed in feeds from other weblogs into a static page, so I think I am nearly there.
Two questions.
1. Why when I follow the View Page link, why do I see the URL as follows?
This module hijacks the category description field to allow you to customize the URL. Leave it blank to allow it to choose the URLs automatically based on the category title.
I have a question about the static_page_path extension. Is it possible to show all children when you are on a static child page? For instance…
This is my page structure:
About Us —Our Staff ——President ——VP ——Janitor
So when I’m on the Our Staff page, my sidebar nav (using static_page_path) is like so:
—President —VP —Janitor
But when I click on one of these pages, I lose the nav since it’s going down a level. Does anyone know how to set it up to retain the nav on an equal level page?
I have the pages configured and working, but I think I am missing something.
I have written an entry called Homepage. It is a static entry to be used as the main text when people hit the index of the site. I have set up pages to use ‘site/index’ as its template.
Now…
when I go to
www.mysite.com/index.php/homepage
I see the page as I would like it, the intro text at the top, then some entries from other weblogs following on, great!
But, I would like that homepage text to display on
www.mysite.com/index.php
I have the same code in the index page but it renders nothing. I can sort of understand that it would need to know which static entry I want displayed, but try as I might, I cannot get it to work.
ANy help for post #391? Pretty please - I read through this post a couple times and couldn’t find anything to help. Does my question make sense? I think it’s pretty common to see subnav stay when you click on other pages in the same level. Is this possible?
I was having the same issue. The automated nav and the lack of pagination made me have to pull the plug on Pages for the current project I’m working on unfortunately. It’s a very cool module but because it’s a module and not built-in functionality it makes for some tough choices. I’d love to hear if anyone has a good way to automate the nav - I’m just about to start in on a custom plug-in because I haven’t found anything that will do what I need to do :(