Yes, the issue was I was logging into my install at /admin.php rather than /system/ (based on page 26 of “Building Websites with ExpressionEngine 1.6” by Leonard Murphy). When I installed Structure I had to change all calls to index.php => admin.php to get it work. So it turns out the ajax request was looking for the wrong file.Thanks for helping me figure out the folly of my ways!
… I can limit structure to just my static pages weblog…
Works like a charm, man. Thank you.
PS: the relevant post by frenzal.
This may have been answered already, but I can’t see a way to search ONLY this thread, and 12 pages is a lot to wade through!
Anyway, I’ve installed this, activated the module, and can get into the settings tab. However, it seems that superadmins CAN’T manage the structure?
Is that right? I’ve created a group called “admins”, and they can get into the structure module and edit entry settings, but superadmins can’t? Am I just missing something, or do I really need to manage this stuff as a non-super-admin user?
Sorry if it’s been answered already!
–
UPDATE: I’m a moron. Didn’t enable the extension…
Is there a way to display the nav_sub on a different template from the one specified? Basically, I am trying to setup a preview template that will display pending content updates prior to approval. The pending template will not display the nav_sub and I assume that this is because it is a different template than the one specified in the structure settings.
Any ideas?
Thanks for replying so quickly!
The navigation is included the code follows: <!– begin Subnavigation –> <div class=”sub left”>
{exp:structure:nav_sub}</div> <!— end .subnav –>
It is included in a header that is used on both the work and not working template. Both template belong to the same template group but the working template is the index and the broken is called pending.
The working template: {embed="includes/header"} {exp:weblog:entries weblog="{segment_1}” status=”open|pending”}
{body} {/exp:weblog:entries} {embed="includes/footer"}
The broken template: {embed="includes/header"} {exp:weblog:entries weblog="{segment_1}” status=”open|pending”}
{body_edit} {/exp:weblog:entries} {embed="includes/footer"}
Working example: http://www.aia-dev.org/about_aia/history/ Broken example: http://www.aia-dev.org/about_aia/pending/history/
The default template for the weblog is set to the index template and every entry is set to that particular template.
So how can I get the navigation to display on more than one template?
Thanks again.
@Trinity Consulting the nav_sub tag is dependent on the URL meaning that it reads the current URL of your page and shows children based off that. It’s not tied per template because you can assign ANY template used for a page, but it is in the sense that the URL it’s used at specifies what’s shown. Down the road we may add a parameter for a “start” page, but right now it’s not planned.
Part of what you’re doing doesn’t work completely with Structure. Structure let’s you specify which weblog to post to, so if your “page” isn’t part of the weblog included in {segment_1} than it won’t show. Try what you’re doing without the weblog parameter and you’ll see. Since Structure doesn’t let you post duplicate page URIs within it you really don’t need that parameter.
As far as your class=”sub left” div, url_title and dynamic=off isn’t needed for the same reasons - the URI is what brings in the dynamic bits. url_title is almost outside the scope of this module. Dynamic IS needed because we’re reading the URI, turning that off kills the functionality.
For a specific example, in your install the URI or page “pending” doesn’t even exist, so the template and URL you’re attempting to show at “http://www.aia-dev.org/about_aia/pending/history/” can’t properly display because it doesn’t exist in the system…. not sure where you got that URL from.
Make sense?
Thanks, I will take a look at this tonight. Not quite sure I understand you. The url for the pending is just following the template that I created in the about group - see the templates section. Also the part about the dynamic off in the sub is just to display the section title it is not part of the subnav. The pending template does show up in the structure tab when I edit an entry and if I select that template it will show on the pending page url that I specified. Again, I will look at it tonight to make sure I understand what you mean.
Thanks.
Sorry, I wanted to correct my statement. The subnav does not show up when I change the template; and I assume that is your point that it is entirely dependent on the structure parent page and thus the url has to have the parent in previous segment? But how can I have a parent and its children displayed on two templates? I look try to look at your message tonight. Thanks again.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.