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

Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

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
       
rockthenroll's avatar
rockthenroll
485 posts
16 years ago
rockthenroll's avatar rockthenroll

@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!

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

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.

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

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.

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

My final reply to this issue - I fixed it, but completely uninstalling EE and then reinstalling.

after i got everything back to the way it was before I installed structure without a problem.

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

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
       
rockthenroll's avatar
rockthenroll
485 posts
16 years ago
rockthenroll's avatar rockthenroll

@Sean - saw your tweet - did you get everything working then? http://twitter.com/CreateSean/statuses/964779196

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

rockthenroll, yeah it’s installed though accessing the CP via masked admin.php gives me the error in my post above yours.

anyhow I’ve looked at the module and I’m not “getting it”, are there any tutorials or example usage anywhere?

       
colinbird's avatar
colinbird
19 posts
16 years ago
colinbird's avatar colinbird

has anyone wrote a function for mod.strucutre.php that will print the entire hierarchy given a specific root note?

like nav_sub, but printing all children?

thanks !

edit: i did it by modifying the nav_main function listed earlier in the thread.

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

@Sean screencasts to come!

       
Jack McDade's avatar
Jack McDade
425 posts
16 years ago
Jack McDade's avatar Jack McDade

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.

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

@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.

       
Jack McDade's avatar
Jack McDade
425 posts
16 years ago
Jack McDade's avatar Jack McDade

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.

       
Jack McDade's avatar
Jack McDade
425 posts
16 years ago
Jack McDade's avatar Jack McDade

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?

       
colinbird's avatar
colinbird
19 posts
16 years ago
colinbird's avatar colinbird

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

       
First 8 9 10 11 12 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.