@smartpill you’ll see those permissions warnings until you add access to the CP, modules and specifically Structure for at least one member group. RE: “No data exists” - add your first pages through the publish tab and you’ll see them appear within Structure. We usually do that for top level nav and then use the “add page” links to flow child pages.
@smartpill the text ‘settings’ is actually a button. Took me a while to figure that out (sluggish day). Maybe as a feature request if this was turned into the typical green EE CP button that keep things consistant
@smartpill the text ‘settings’ is actually a button.
I figured that out but thank you for suggesting that. And I agree, it probably should look like a standard button. Things were a little out of whack so I thought maybe something was missing.
Ok, here’s what confused me. SuperAdmins always have access to everything so since I didn’t see that group listed I thought something was wrong. Also, I guess I didn’t go back to a second group and assign them privileges. I did try it before I uninstalled and reinstalled and it didn’t work at the time, but I tried it again and now things are showing. Can’t wait to test it.
Great module, you guys have obviously put a bit of work into it.. I really like the idea and interface, it simplifies a lot of the issues I’ve had with EE when trying to explain to clients how to structure a site…
Quick question about the navigation tags.. is there (going to be) any other params that can be used? Such as a way to generate the list for the top-level items as well (not just the child items), and to restrict it to a single level rather than the two levels?
I hope that these aren’t too much to hope for… but using this module would be replacing the Pages module AND Leevi’s LG Navigation module, which was fairly configurable…
If Structure is “a new way to build ExpressionEngine sites”, are you possibly able to give a brief overview of how you go about building a basic site to best fit the Structure ‘method’,
i.e. what is your weblog structure for static/dynamic pages (eg, i always have a weblog called Site Pages), what your basic templates look like, when/how to use the nav tags, etc..
I think it would make a great resource to go along with the module…
@Michael thanks for the kind words! We have worked very hard on it I’m glad you’re digging it.
We will eventually add more params for the navigation tag, but right now it’s not a priority. Keep your eye here and I’ll let everyone know when updates are released.
As far as the entire setup, I have a step-by-step tutorial coming out when the new Jambor-EE launches. Not sure on the exact day, Jamie’s been really busy. Sit tight and experiment for now. The docs have everything you need, but the tutorial will help speed things along once it’s out.
That’s right! I forgot about that. I loved Tome and some of that module is what lead to part of Structure’s development. He writes useful EE software, hopefully he’ll be back!
Sorry I haven’t been able to test Structure yet. I will of course be testing it for an upcoming project for a bar/restaurant. I can give you more feedback then!
@travis - This is really an amazing module its come just in the nick of time for a projects I’m on. Thanks again!
Now, my php skills aren’t really my strong point (more of a front end developer) but I had similar needs to what Michael is requesting (ie a top-level items nav) and managed to make a new function out of your nav_sub in mod_structure.php for a top level nav with drop-down to second level. So I can add {exp:structure:nav_main} to get a list with children.
Would you like to see if this is useful for you to add for others to use?
@wuwongy that may be in a future version, but not needed right now. Generally top level pages are in a template or don’t need to be dynamic. Maybe someday! Feel free to use your update though. Thanks!
Here you go… like I say PHP ain’t my strong point so this can probably be improved. But I managed to make this out of the nav_sub function.
Paste into mod_structure.php then just add - {exp:structure:nav_main} to your templates.
Hope this helps
function nav_main() { global $DB, $IN, $PREFS;
// get site pages data $site_pages = $PREFS->core_ini['site_pages']; // get current uri path $uri = $IN->URI; // get current entry id $entry_id = array_search($uri, $site_pages['uris']); // get node of the current entry
$sql = "SELECT * FROM exp_structure AS node INNER JOIN exp_structure AS parent ON node.lft BETWEEN parent.lft AND parent.rgt INNER JOIN exp_weblog_titles AS expt ON node.entry_id = expt.entry_id WHERE node.parent_id = 0 GROUP BY node.entry_id ORDER BY node.lft"; $result = $DB->query($sql);
$html = '<ul id="nav">'; foreach ($result->result as $top) { // get children $childsql = "SELECT * FROM exp_structure AS node INNER JOIN exp_structure AS parent ON node.lft BETWEEN parent.lft AND parent.rgt INNER JOIN exp_weblog_titles AS expt ON node.entry_id = expt.entry_id WHERE node.parent_id = " .$top['entry_id'] ." GROUP BY node.entry_id ORDER BY node.lft"; $childresult = $DB->query($childsql);
// out entry uri of this loop instance $euri = $site_pages['uris'][$top['entry_id']];
Has anyone had any joy getting weblog pagination to work with this module installed?
I notice the module requires dynamic=“off” which I think stops pagination working.