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!
rockthenroll,
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.
Well I lied, I’m back again.
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
Is there anyway to use nav_sub such that i can set the root, rather than it detecting what page i’m on? That way i can show dropdowns for various levels of the site.
Also, how do i set the homepage using Structure? the urls the tags build out are from root, but the root entry has a title so i can’t set it as index.
@Jack No, the nav_sub tag currently doesn’t do this, check the docs and previous conversation, it’s set as is for now. I’m sure you could write some extra code to output it differently though. For the homepage you can set the URI to “/” and put “Home” in the title. Then use a separate template to not show the title on that page.
Okay fair enough, i already started writing the additional function and i’ll post it up when it’s done.
I’m also fixing frenzal’s nav_main function – the html isn’t quite right, it drops the closing </li>’s and adds an extra </ul> at the end.
As for the homepage, easy enough. Thanks! I love the module, it’s saving me LOTS of time and is really user friendly.
One more question though – Why don’t i have the ability to reorder pages? I see the little reorder icons in the screenshots, but it doesn’t show up for me.
Now that i think about my site architecture, i realized i have a unique situation that Structure may not be able to help me answer.
I have one top level nav (Services) that isn’t listed in my main navigation. It’s separate sidebar with its own multi-level navigation. Is there anyway to(hack if necessary) separate a nav item and its children into its own ul structure?
jack: you probably don’t have the jquery extension setup properly if your re-order doesn’t work.
if you’ve already taken to fixing the nav_main function, then surely you can hack it up to ignore certain sections, etc. i’ve been doing something similar, and even added another database field to the extension to allow for “shortcuts” - links “across the tree” which my client required
cna’t wait for a fully featured super flexible version of structure !!!
Colin
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.