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

leadsuccess's avatar
leadsuccess
408 posts
16 years ago
leadsuccess's avatar leadsuccess

Ok I spotted this one quickly, there is a double underscore where exp__ instead of exp_, here are the 2 places I changed in the mod_structure.php file.

Line 1223 Line 1687

Took this part

db_prefix . "_structure_settings

to

db_prefix . "structure_settings

Seems to work fine now, so far so good.

       
Craig Allen's avatar
Craig Allen
135 posts
16 years ago
Craig Allen's avatar Craig Allen

I’m not able to change the order of the structure pages (I assume that you are supposed to be able to drag them around). What might be causing this?

       
ira42's avatar
ira42
167 posts
16 years ago
ira42's avatar ira42

First Structure post, so Travis, thanks much for this terrific module. SERIOUSLY – LIFE – CHANGING.

I was having the ‘drag and drop to re-order’ issue (could select and drag, but couldn’t drop it), mentioned a few times in recent posts, and thought I’d post my fix (your mileage may vary…).

In my case, I had left the jQuery extension settings to the default Google code links. Once I moved the jQuery code to my server, it worked.

On another test server, that fix didn’t work! Turns out on that server, that it was a jQuery cross-domain security error. I forgot to add the “www” when entering my control panel URL. Forcing the http://www.mysite.com/my_system_name/ allowed me to drag AND drop.

Hope this helps someone in the same situation.

Cheers,

Ira

       
rick.prince's avatar
rick.prince
111 posts
16 years ago
rick.prince's avatar rick.prince
In my case, I had left the jQuery extension settings to the default Google code links. Once I moved the jQuery code to my server, it worked. On another test server, that fix didn’t work! Turns out on that server, that it was a jQuery cross-domain security error. I forgot to add the “www” when entering my control panel URL. Forcing the http://www.mysite.com/my_system_name/ allowed me to drag AND drop. Hope this helps someone in the same situation. Cheers, Ira

Hrm, neither of those fixes work. I’m using the latest version too, 1.2.2 - anybody having the same issues?

       
ira42's avatar
ira42
167 posts
16 years ago
ira42's avatar ira42

Rick.Prince, sorry, not sure then… Must be a different cause for you. (I assume that you have the jQuery extension enabled, and pointing to the right js files? And that you’re using the full url to your control panel / aren’t masking your control panel?)

Travis, I was having trouble getting the subnav to respect the “start_from” parameter on pages outside of the current page, and noticed the following code in ‘mod.structure.php’:

// get site pages data
    $site_pages = $PREFS->ini('site_pages');
    // get current uri path
    if($start_from != "") {
        $uri = $start_from;
    } else {
        $uri = $IN->URI;
    }
    
    // get site pages data
    $site_pages = $PREFS->ini('site_pages');
    // get current uri path
    $uri = $IN->URI;

Me thinks the first seven lines were meant to replace the last four, no? I’ve commented out the following, and it’s setting the $uri variable as expected:

// get site pages data
    $site_pages = $PREFS->ini('site_pages');
    // get current uri path
    if($start_from != "") {
        $uri = $start_from;
    } else {
        $uri = $IN->URI;
    }
    
    // get site pages data
    //$site_pages = $PREFS->ini('site_pages');
    // get current uri path
    //$uri = $IN->URI;
  • Ira
       
rockthenroll's avatar
rockthenroll
485 posts
16 years ago
rockthenroll's avatar rockthenroll

We’ll be looking into these issues first thing next week. Thanks for your patience.

       
Craig Allen's avatar
Craig Allen
135 posts
16 years ago
Craig Allen's avatar Craig Allen

Thanks rockthenroll.

In my case my site is still not live and is hosted on an address of http://savethepines.localhost on a Windows XP system.

Going by the comments of others this may be causing my problem with the JQuery not working.

       
Craig Allen's avatar
Craig Allen
135 posts
16 years ago
Craig Allen's avatar Craig Allen

Shifting my site over to the web host (see www.savethepines.net) has solved the sorting problem.

But now I’m getting the following error which others have reported.

Notice: Undefined variable: node in /home/picoalle/public_html/savethepines.net/engineroom/modules/structure/mod.structure.php on line 93

Everything seem to work OK though otherwise. The notice is repeated the same number of times as the number of top level pages I have. For now I’ve made the top margin of the page negative by an amount that hides all the messages (although you still see them flash up before they get hidden).

       
Craig Allen's avatar
Craig Allen
135 posts
16 years ago
Craig Allen's avatar Craig Allen

The plot thickens - half the contents of each of my page’s header section, including the favicon, css stylesheet and javascript links, are being rendered inside my body section.

       
Ryan Faubion's avatar
Ryan Faubion
81 posts
16 years ago
Ryan Faubion's avatar Ryan Faubion

just FYI MAMP and Structure aren’t friends. put ‘ext.structure_ext.php’ in the extensions folder, then it just goes blank. remove the file and it works again. anyone seen this?

       
Craig Allen's avatar
Craig Allen
135 posts
16 years ago
Craig Allen's avatar Craig Allen

The kind people at nGen looked into the problem for me, noticed that I was using Structure v1.2.1 An update to to v1.2.2 has solved my problem. It also fixed another php error that was appearing on the control panel home page, which referred to the LG Addon updater extension.

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

New version released! v1.2.3

Loads of new toys, including the much requested sitemap tag & ids on main nav lis

• New tag! {exp:structure:sitemap} • New tag! {exp:structure:page_slug} • {exp:structure:nav_main} new behavior: always hides entries with closed status • {exp:structure:nav_main} added id to each nav item (id=”nav”) • {exp:structure:nav_sub} new behavior: always hides entries & children below when status is closed • {exp:structure:nav_sub} new parameter “show_overview_link” • {exp:structure:nav_sub} new parameter “show_level_classes” • {exp:structure:breadcrumb} new parameter “uri” • Settings: added new warning when you try to erase Structure data • Updated the “No Structure data” message to be more informative and help setup an install

http://www.ngenworks.com/software/ee/structure

       
Craig Allen's avatar
Craig Allen
135 posts
16 years ago
Craig Allen's avatar Craig Allen

Wohoo thanks Travis!

I’ve set up Structure with a site and it is working beautifully.

However, I have a question about allowing users to access the structure page.

I’ve added the structure extension page as a tab on my control panel. I’d like to do this for my editors user group. But I don’t want to give them access to the extension section in the control panel. So they therefore can’t create a tab for themselves.

Is there any way I can give the structure tab every member of the user group?

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

@Craig Allen Login as that user and add whatever tab you want for them or use something like this: http://leevigraham.com/cms-customisation/expressionengine/lg-add-cp-tabs/ I have a feeling you mean you want to add the MODULE page for them under the Modules tab, since that’s where the Structure tree view lives.

       
28Bytes's avatar
28Bytes
192 posts
16 years ago
28Bytes's avatar 28Bytes

Rock On!

       
First 35 36 37 38 39 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.