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

Pete Eveleigh's avatar
Pete Eveleigh
31 posts
15 years ago
Pete Eveleigh's avatar Pete Eveleigh

Just got into Structure and I must say I’m loving it so far.

One thing I can’t work out.

I’m trying to give a member group access to structure without exposing too much of the admin. The members of this group need to be able to add/edit pages and assets. I don’t really want them being able to do anything else other than that and ideally I want them to do it through a custom tab in the CP that goes right to the structure page list.

I have set up the group as seems logical but when I try to go the Structure page I get a message saying that the user doesn’t have permission to view it.

What do I need to grant access to in order for someone to use the Structure module?

EDIT:

Ignore all that.. I found what I needed in the actual Structure module settings. 😊

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

RE: Wygwam issue from @bjorkudden - Everything is cool, it’s was a MAMP configuration issue, not a module/extension conflict

       
Pete Eveleigh's avatar
Pete Eveleigh
31 posts
15 years ago
Pete Eveleigh's avatar Pete Eveleigh

How would I get the nav_sub method to use the proper entities ampersand characters?

EDIT:

Line 808 of mod.structure.php

Change from

$list_item = "<li$list_item_class><a href="http://$item_uri">" . $page['title'] . "</a></li>\n";

to

$list_item = "<li$list_item_class><a href="http://$item_uri">" . htmlspecialchars($page['title']) . "</a></li>\n";
       
Blue Coast Web's avatar
Blue Coast Web
32 posts
15 years ago
Blue Coast Web's avatar Blue Coast Web

Is there a way to specify/break out the titletrail outputs?

I just want the top level nav item shown, and I can’t use parent_title because nothing shows up when I’m on the landing page.

For example, let’s say my top nav is:

Home | About | Contact

If you click on “Contact”, you are taken to the Contact landing page, with a subnav of:

Directions | Feedback

If I’m on the “Feedback” page, the parent_title outputs “Contact” correctly. However, if I’m on the “Contact” landing page, there is no parent title to display.

If I’m using titletrail on the Feedback page, it outputs “Home | Contact | Feedback”, and “Home | Contact” on the “Contact” landing page.

It’s obviously doing a query to get what I want since I just want “Contact” displayed from my above example in both instances. However, both the “Contact” landing page and “Feedback” page use the same template, so I essentially just need a “current topnav” output tag.

       
emagine media's avatar
emagine media
65 posts
15 years ago
emagine media's avatar emagine media

Is there any way to get the index.php out of the links that structure creates in the navs and the breadcrumbs? I am looking through most of the code and don’t see anything telling…

Great plugin, works well!

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

New Release 1.3.1

http://buildwithstructure.com

• Bug fix: nav_sub Overview link “here” always marked so • Bug fix: “-1” appended to entries • Bug fix: pagination for entries with expiration dates • Bug fix: Safari delete button overlap in CP

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

@Pete Eveleigh - Thanks for the code fix!

@bcw - Currently not a way to do that with a tag.

@emagine media - It uses your system prefs, so set it there.

       
Wouter Vervloet's avatar
Wouter Vervloet
758 posts
15 years ago
Wouter Vervloet's avatar Wouter Vervloet

Hi Travis,

I just looooove Structure and the way it simplifies the use for a client.

That aside, I was missing one thing in the module regarding the ‘Overview’ link option. Sometimes I need it to be named different, or be named in my language. So I made a little addition to your code (if you don’t mind).

I added a ‘overview_link_title’ parameter:

// line 499
// overview_link_title
$overview_link_title = $TMPL->fetch_param('overview_link_title') ? $TMPL->fetch_param('overview_link_title') : "Overview";

and changed the following to implement it:

// line 710
// $overview_data['title'] = "Overview";
$overview_data['title'] = $overview_link_title;

I guess this would be a nice addition to the next release.

Greetz, Wouter

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

@Wizz That’s much requested and already in the next version - thanks for your feedback!

       
Blue Coast Web's avatar
Blue Coast Web
32 posts
15 years ago
Blue Coast Web's avatar Blue Coast Web

Thanks for the reply Travis.

In case anyone comes across the same problem I had, a good night’s sleep and an even better cup of coffee led me to this simple solution:

{if "{exp:structure:parent_title}" == ""}
{title}
{if:else}
{exp:structure:parent_title}
{/if}
       
FortySeven Media's avatar
FortySeven Media
130 posts
15 years ago
FortySeven Media's avatar FortySeven Media

Curious issue. If I’m at:

http://site.com/page/blog/ the secondary nav highlights when I go to the blog page.

but if I go to http://site.com/page/blog/title_of_post it is not highlighted anymore.

I have it setup so the blog post is a listing of the main blog page with all the appropriate templates connected. The main navigation seems to stay highlighted on “Page” so I’m not sure why the secondary nav isn’t staying highlighted. Am I just missing something simple?

       
Herb's avatar
Herb
224 posts
15 years ago
Herb's avatar Herb

edit: never mind… I figured it out.

       
AJReading's avatar
AJReading
7 posts
15 years ago
AJReading's avatar AJReading

Hey,

New to EE and structure, so far I’ve managed to get a site up and running but is there anyway to disable access to change the template under the structure tab?

It’s possible that the users could mess things up if they choose a template other than the default for certain weblogs.

Ideally, i would like to be able to disable the template choice for certain weblogs and limit the template choice for others. Is this possible?

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

@fortys it should stay highlighted on the detail page of the blog post. Adding to a bug list. Thanks!

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

@AJ Reading Not currently available, but partially on the list for down the road

       
First 58 59 60 61 62 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.