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. 😊
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";
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.
New Release 1.3.1
• 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
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
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}
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?
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?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.