We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Module: Structure - Uses entries to create a page hierarchy for static and listing pages

Development and Programming

rockthenroll's avatar
rockthenroll
485 posts
16 years ago
rockthenroll's avatar rockthenroll

PM me a login and we’ll take a look

       
rockthenroll's avatar
rockthenroll
485 posts
16 years ago
rockthenroll's avatar rockthenroll

Follow-up to @jeffc issue above: We tested determine the error was not a Structure bug, but caused by edits to the module files he did.

       
jeffc's avatar
jeffc
30 posts
16 years ago
jeffc's avatar jeffc

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!

       
Jack McDade's avatar
Jack McDade
425 posts
16 years ago
Jack McDade's avatar Jack McDade

Looking great!

       
cherrypj's avatar
cherrypj
158 posts
16 years ago
cherrypj's avatar cherrypj
… I can limit structure to just my static pages weblog…

Works like a charm, man. Thank you.

PS: the relevant post by frenzal.

       
MailDog's avatar
MailDog
2 posts
16 years ago
MailDog's avatar MailDog

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…

       
PeterMirus's avatar
PeterMirus
49 posts
16 years ago
PeterMirus's avatar PeterMirus

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?

       
Fred Boyle's avatar
Fred Boyle
73 posts
16 years ago
Fred Boyle's avatar Fred Boyle

Trinity Consulting,

The template should not affect the display of nav_sub as it’s based on the entry and not the template. Can you post the code being used in both templates (the one that works and the one that doesn’t)?

       
PeterMirus's avatar
PeterMirus
49 posts
16 years ago
PeterMirus's avatar PeterMirus

Thanks for replying so quickly!

The navigation is included the code follows: <!– begin Subnavigation –> <div class=”sub left”>

{exp:weblog:entries url_title="{segment_1}” dynamic=”off”}{title}{/exp:weblog:entries}

{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”}

{title}

{body} {/exp:weblog:entries} {embed="includes/footer"}

The broken template: {embed="includes/header"} {exp:weblog:entries weblog="{segment_1}” status=”open|pending”}

{title}

{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.

       
Fred Boyle's avatar
Fred Boyle
73 posts
16 years ago
Fred Boyle's avatar Fred Boyle

Trinity Consulting,

Does the pending page have those same children as the non-pending page? I don’t think I’m quite clear on what’s going on so if you want you can PM me a login and I’ll take a quick look at your Structure.

       
rockthenroll's avatar
rockthenroll
485 posts
16 years ago
rockthenroll's avatar rockthenroll

@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?

       
PeterMirus's avatar
PeterMirus
49 posts
16 years ago
PeterMirus's avatar PeterMirus

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.

       
PeterMirus's avatar
PeterMirus
49 posts
16 years ago
PeterMirus's avatar PeterMirus

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.

       
rockthenroll's avatar
rockthenroll
485 posts
16 years ago
rockthenroll's avatar rockthenroll

Remember your template groups have nothing to do with entries displaying. Each “page” is assigned to use a certain template and everything is determined by that URI instance. Anything independent of the URI would use dynamic=’off” to pull data not related there.

       
rockthenroll's avatar
rockthenroll
485 posts
16 years ago
rockthenroll's avatar rockthenroll

@Trinity Consulting right nwo, you can’t have two parents showing the same URI. Down the road, but right now not possible.

       
First 12 13 14 15 16 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.