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.
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
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?
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;
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).
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.
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
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?
@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.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.