@Jason Morehead I think the problem is that page is not a Structure URL, so the tag doesn’t realize it should be a “here” page. What are you using to generate that URL? Which tag/module/etc?
I’m using EE’s “Weblog” module to generate that URL. I’ve got a weblog called “calendar” that is used to handle calendar content (obviously) and is set up as a “Structure” type. This weblog is assigned to a “listing” page titled “Events & Program Calendar” that is assigned to a specific template (“news-events/calendar”).
On this template, I have conditional statements to display the different views of the calendar. Here’s a stripped down version of that template, so you can see what I’m doing:
{if segment_3 == "event"}
(Display information for a single event)
{if:elseif segment_3 == "category"}
(Display events for a specific event category)
{if:elseif segment_3 == "day"}
(Display list of events for a specific day)
{if:else}
(Display current month's events)
{/if}
Does that help at all?
Yep, that’s the issue then. Structure uses the same hook as the Pages module and only knows absolute URLs. So, to trigger the here state you would have to have the detail page at:
http://domain.com/news-events/calendar/event-name-here
instead of:
http://domain.com/news-events/calendar/day/2009/05/29
What can be done in this instance to pass a date via a string and use a bit of htaccess magic for clean URLs or leave the date out completely.
Ok thats what ill do.
Can i make a feature request for the sub nav for listings.
Its just makes the site that little bit more automated rather than clients c/p links. Also to only have it on static pages makes the usability that little poorer. It would be great if users could jump from product to product without backing up to the parent page then clicking again.
Edit: There seems to be a bug where the outputted HTML is missing a closing </li>
<ul id="nav_sub"><li class="sub_level_0 parent_here"><a href="http://....">Product Cat</a>
<ul>
<li class="sub_level_1 here last"><a href="http://....">Product</a></li>
</ul>
</ul>
^ The first li doesnt close….
Thanks again for the great module.
Hi people, we currently got a weird issue with structure about the sitemap feature, no matter how check and double check the template code even structure source code the sitemap generates a list of all links without titles:
http://bit.ly/2U1bR
Checking the sitemap function in structure i saw that even if i change the title, the list is still blank, i appreciate any help, thanks
Hi people, we currently got a weird issue with structure about the sitemap feature, no matter how check and double check the template code even structure source code the sitemap generates a list of all links without titles: http://bit.ly/2U1bR Checking the sitemap function in structure i saw that even if i change the title, the list is still blank, i appreciate any help, thanks
Solved!. I need drink more colombian coffee 😉
I’m encountering a problem that has been mentioned on this thread already but with no conclusive solution.
I’m seeing a red ERROR message appear next to my Structure sections when I move them. I haven’t got to the front-end yet so I don’t know how these error messages are effecting the rendering of the pages. Even though the item does appear to have been moved, when I refresh the page it returns to it’s previous position and the error message is gone.
The error message is inside this tag
<span class="warning tabledrag-changed">ERROR</span>
I’ve just upgraded to the new version of Structure version 1.2.7 (it happened before on 1.2.6 too).
I’m not using MSM. I’ve tried it in Firefox and Safari.
My EE is is 1.6.7 Build: 20090515 (I have jQuery installed)
PHP version 5.2.8
Sorry if this has been posted, but I can’t seem to find anything digging back through the last few pages. I’m using 1.2.7, and when there are no subpages, sub_nav generates an empty <ul id=”nav_sub”></ul>. This screws up my page logic that determines what backgrounds and layout to use…
Is that a bug or a feature? 😉
Hi All,
I’m having an issue with Structure and the “listing” dropdown. It seems the dropdown doesn’t retain the set value when editing an entry. If I set the “listing” weblog and then edit the entry the “listing” weblog is always reset to the first weblog in the dropdown.
Any thoughts?
Thanks, Shawn
@emilyh Check your PMs, this has been a masked CP or versioning issue in the past
@Brian M. Unfortunately the only previous method was a conditional to check for children, but recent functionality broke that. You’ll need to switch to a different template for pages without nav_sub and remove that code from there. Or do segment checking in the template to not reveal the code if on that page.
@visualchefs Check your PMs, this has been a version issue in the past
@PenGwnFistOfFury Logged in and the member group did not have Publish tab access, so they could not access Structure. This couldn’t have just stopped working and must have been altered by a Super Admin as all your groups are locked.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.