Sorry to hog the thread, but I have one more feature request.
I’ve noticed that the {exp:structure:nav_sub} tag’s output doesn’t nest lists properly. For example, here’s how the tag currently outputs the lists:
<ul id="nav_sub">
<li class="sub_level_0"><a href="/about/overview/">Worship & Music</a></li>
<li class="sub_level_0 parent_here"><a href="/about/staff/">Men</a></li>
<ul>
<li class="sub_level_1 here"><a href="/about/staff/managers/">Managers</a></li>
<li class="sub_level_1"><a href="/about/staff/sales/">Sales</a></li>
</ul>
<li class="sub_level_0"><a href="/about/catalog/">Catalog</a></li>
</ul>
Note that the “sub_level_1” list is actually outside the <li> that contains its parent. This output certainly works, but it makes the CSS styling a lot more difficult (and it’s less correct semantically). Could the output be adjusted to look like this?
<ul id="nav_sub">
<li class="sub_level_0"><a href="/about/overview/">Worship & Music</a></li>
<li class="sub_level_0 parent_here"><a href="/about/staff/">Men</a>
<ul>
<li class="sub_level_1 here"><a href="/about/staff/managers/">Managers</a></li>
<li class="sub_level_1"><a href="/about/staff/sales/">Sales</a></li>
</ul>
</li>
<li class="sub_level_0"><a href="/about/catalog/">Catalog</a></li>
</ul>
Now, the “sub_level_1” list is correctly nested within its parent’s <li>. It’s more correct semantically, and makes styling with CSS easier as well.
What do you think?
Hi Travis,
Great module!
When I try to access my homepage, I’m getting the error message that the tag {exp:structure:breadcrumb}, can’t be found. In other pages/levels (with URLs) the tag does work. Any clue?
Question/Request: Is is possible to completely remove the main add/edit buttons in the header and only use the Structure tab for customers?
@NicoSmit Not sure what’s up here because the breadcrumb tag shouldn’t cause any errors on your homepage. It doesn’t return anything when there. Can you PM me a login to look at your install? Or post the code?
We’re finishing up an extension now that allows tabs for groups or individuals, ordering and hiding the default ones. We’ll release it soon, gotta make time to write the docs.
i just installed this after thinking i was going about an essentially ‘static’ site a**-backwards. i’ll probably have more to say but so far, this is very cool. kudos.
eta: probably a setting issue of my site, but when i use the sub_nav it is relative to the web root, not the index.php. e.g. nuun.cl/about/what_is_nuun as opposed to nuun.cl/index.php/about/what_is_nuun
I’ve noticed that when I move pages around, the site structure seems to be updated but the word “Error” (in red) always appears next to the page I’ve moved. Why is that?
It doesn’t happen on the other that I’m using “Structure” with. There, I just get a red asterisk that disappears almost immediately.
Were those entries created before installing Structure? The problem is most likely that they don’t have Structure data associated with them. It creates an alias/url for EVERY entry, so one’s created before probably don’t have the correct data associated with them yet. If that’s the case go in and resave that entry and it should work.
Nice module!
I had a bit of trouble initially because I was using hidden templates. As soon as I removed the period at the start of my template name it started working. It would be nice if hidden templates were supported as this seems like a situation where you’d want to use them.
Were those entries created before installing Structure? The problem is most likely that they don’t have Structure data associated with them. It creates an alias/url for EVERY entry, so one’s created before probably don’t have the correct data associated with them yet. If that’s the case go in and resave that entry and it should work.
I tried re-saving, to no avail: I still get the “Error” text.
The only odd thing I notice is that, when selecting what tabs appear on the “Publish” form, I still have an option to display the “Pages” tab, even though I uninstalled the “Pages” module (I had installed it when I was first configuring EE for this site, which was before I discovered “Structure”).
I think that tab is just built into the system as an option under the Weblog Management prefs regardless of whether Pages is installed or not.
This may have to do with some kind of errors since you had Pages data installed, but I would need more details to be able to help debug anything. You should also be fine as long as Pages is uninstalled, so I’m thinking there’s something else at work here.
Can you PM me a login? If that doesn’t yield anything obvious can you try with a clean install as a demo? That way we can narrow down if it’s a bug or the environment…
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.