@smartpill {exp:structure:nav_sub} should NOT be within a weblog tag. That’s probably why it’s not outputting anything out for you.
Ok. This is probably what confused me:
Pages can be linked to within {exp:weblog:entries} with the variables {page_uri} and {page_url}.
I did manage to get subnav page links to appear (thanks watershed). I was hoping to get the entire menu to show. I tried frenzal’s code but get a PHP error when I place it. I think it was “unexpected T-VAR” or something like that referring to the 1st line of the new code.
rockthenroll - 08 October 2008 01:54 PM
RE: The Issue: the top level nav is locked down so clients can’t change nav that may be hardcoded into a template. Right now we don’t have plans to change this.
My bad. When I checked the “administer” permission preference it worked fine.
Would be pretty helpful if this worked for more than 2 levels. I tried Frenzel’s code and it works, but it shows everything no matter what page you are on, instead of only showing children once you actually click on a page.
I may have a look at the code and see if I can modify it. Either way, nice job on this so far, it’s a great tool that should be built into EE.
I attempted to install this but got the following error when enabling the extension.
I added the CPjquery module no problem
the actual structure module will install
but the extension gives me this error when I go to the extensions manager
Warning: require_once(modules/structure/mod.structure.php) [function.require-once]: failed to open stream: No such file or directory in D:\xampp server\htdocs\xxx\yyy\extensions\ext.structure_ext.php on line 5
Fatal error: require_once() [function.require]: Failed opening required 'modules/structure/mod.structure.php' (include_path='.;D:\xampp server\php\pear\') in D:\xampp server\htdocs\xxx\yyy\extensions\ext.structure_ext.php on line 5
@Sean Looks like you need to upload the contents of the modules folder to your install’s module directory as the error states: modules/structure/mod.structure.php. Also, install the module after that.
Thanks for the feedback, everyone. The subnav might have more control eventually, but right now it’s as is. Let’s move any plugin chat regarding extending that functionality to a different thread to avoid confusion of the built-in tags vs the custom ones you are all helping with. I really appreciate the work everyone is putting in I just want to make sure we keep it all straight for people joining in. Thanks!
actually I’ve done that and installed the module but the error persists. I can see that the mod.structure.php file exists in the structure folder inside of modules inside of system.
In installed and uninstalled and reinstalled the module and the error for the extension continues.
I deleted everything, redownloaded it all and then followed the instructions exactly and I’m still getting this error.
——
I then went to another install and added the structure module using exactly the same procedure and it works - no idea why it works in one but not another.
I can access my control panel easy enough when I use domain.com/system/ however if I use admin.php to mask the control panel I get the same error as above - I have no idea why this would show up as it doesn’t seem to be related.
Warning: require_once(modules/structure/mod.structure.php) [function.require-once]: failed to open stream: No such file or directory in D:\xampp server\htdocs\path\to\extensions\ext.structure_ext.php on line 5
Fatal error: require_once() [function.require]: Failed opening required 'modules/structure/mod.structure.php' (include_path='.;D:\xampp server\php\pear\') in D:\xampp server\htdocs\path\to\extensions\ext.structure_ext.php on line 5