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

Christofer's avatar
Christofer
20 posts
16 years ago
Christofer's avatar Christofer

Really love Structure. Thanks guys. Just a quick tip for people getting the ERROR message when rearranging items. If you’re using a development server with the System Preferences > General Configuration > “Is system on?” set to “No” make sure the user group the logged in user is attached to can view the site when it’s offline. 😊

Everything worked like a charm logged in as a Super Admin during development but when I made a test with the user’s editor account I got the ERROR message. Using Firebug (and checking the AJAX response) solved the problem quite fast but it was not that obvious to me in the first place… Just a quick tip to avoid spending time on unnecessary stuff.

       
IschaGast's avatar
IschaGast
56 posts
16 years ago
IschaGast's avatar IschaGast

I have tried structure again and now I think this rocks. First I thought structur did something wrong but now I now it does not.

I have added it to this page

The structure is like the attached file. But you don’t see all the parent pages :? But when I delete the subsubpage they are visible. This is a parent page. How is that possible?

Another thing is when I am on this page and click on a sub_nav link it won’t work because it doesn’t use the “URL to the root directory of your site”. I thought the new version 1.0.2 used the url that was filled in over there. Or do I have to specify that url somewhere else?

Playing width structure I am getting some Error’s when moving some pages. First these pages were created before structure was installed. But I removed that pages and created some new ones. But I still get that error.

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

@IschaGast the sub nav is working correctly. It only show children of the page you’re on, so when you’ve drilled deeper, as in your example, and there is only one “subsubpagina” page you’ll only see it listed.

As far as your root index issue is appears everything is under the directory “janhekmanschool” so you’d need that entered into the site URL field in the control panel prefs.

If you can trace your steps to getting the page moving errors you can PM me a login, but you’ll need to let us know details of the steps you did and try testing it in a default install before sending to make sure it’s nothing customized with your setup if you’ve changes core files or Structure itself. Any pages before Structure will not work.

       
IschaGast's avatar
IschaGast
56 posts
16 years ago
IschaGast's avatar IschaGast
@IschaGast the sub nav is working correctly. It only show children of the page you’re on, so when you’ve drilled deeper, as in your example, and there is only one “subsubpagina” page you’ll only see it listed.

Ok I get it… does that mean that you could never create some sort of tree menu like these? http://jquery.bassistance.de/treeview/demo/

As far as your root index issue is appears everything is under the directory “janhekmanschool” so you’d need that entered into the site URL field in the control panel prefs.

You are right, my site is in a subdirectory of my domain. I don’t many people do it this way but that’s because I had to put the site somewhere for developement.

Where can I find that field? Because at the moment I putted this url http://ischagast.nl/janhekmanschool/ at URL to the root directory of your site. I needed that because in the whole site I use links that go to {site_url} etc… If I place “janhekmanschool” at Name of your site’s index page that all my other url won’t work.

If you can trace your steps to getting the page moving errors you can PM me a login, but you’ll need to let us know details of the steps you did and try testing it in a default install before sending to make sure it’s nothing customized with your setup if you’ve changes core files or Structure itself. Any pages before Structure will not work.

I did not changed any core file I think, I have a minimal amount of plugin/modules installed. I also removed all pages that were created before the structure install but still have that problem.

I tried to delete some pages from the site that were not in structure and I get this error:

Warning: extract() [function.extract]: First argument should be an array in /home/.kasper/ischagast/ischagast.nl/janhekmanschool/ee_janhekmanschool/modules/structure/nestedset/structure_nestedset_adapter_ee.php on line 29
MySQL ERROR:

Error Number: 1064

Description: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND rgt <= ORDER BY lft' at line 3

Query: SELECT * FROM exp_structure WHERE lft >= AND rgt <= ORDER BY lft

But this error does not always pop up….

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

The sub nav uses the )site_index} value so it won’t work if your base install settings don’t match. Im not really sure what your setup is, but it seems like you have an extra directory of “jhs.” I’m going to look into your page issue when you PM me the CP URL, but I suggest you test and try Structure in a normal environment and setup before attempting to port it into this dev area and make it work different.

       
Steven Grant's avatar
Steven Grant
894 posts
16 years ago
Steven Grant's avatar Steven Grant

I’m getting this error on my install when I try to enable the extension:

PHP Parse error: syntax error, unexpected T_ARRAY, expecting ‘&’ or T_VARIABLE in C:\domains\greenviewevangelicalchurch.co.uk\wwwroot\genesis\modules\structure\nestedset\structure_nestedset.php on line 11

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

Forgot to post last Friday - new version of Structure (1.0.2) with loads of updates http://www.ngenworks.com/software/ee/structure/index.html#change-log

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

@Steven Grant what version of PHP do you have? PM me details

       
IschaGast's avatar
IschaGast
56 posts
16 years ago
IschaGast's avatar IschaGast
The structure is like the attached file. But you don’t see all the parent pages :? But when I delete the subsubpage they are visible. This is a parent page. How is that possible?

You already mentioned it but now I also see on the structure download page that “The nav_sub tag is intended for sub-navigation and will show up to two levels of <ul>s at a time.”

Maybe something for in the future is to make this more levels deep because I think everyone would really love it.

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

@IschaGast It’s on the list

       
Tyssen's avatar
Tyssen
756 posts
16 years ago
Tyssen's avatar Tyssen

I’ve upgraded to the latest version and it seems that the module’s settings are ‘sticking’ anymore, ie, I set which templates each weblog should use, but they don’t come up that way when creating new entries and when I go back into the settings, they’ve all reverted back to what they originally were (ie the first template in the first template group).

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

@Tyssen I’ll do some testing and get back to you, but I haven’t seen this yet. Thanks!

       
Tyssen's avatar
Tyssen
756 posts
16 years ago
Tyssen's avatar Tyssen

Also, not sure if this one’s been reported before, but I’m getting this error when deleting entries (the entry does get deleted though):

MySQL ERROR:

Error Number: 1064

Description: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND rgt <= ORDER BY lft' at line 3

Query: SELECT * FROM exp_structure WHERE lft >= AND rgt <= ORDER BY lft

Server is Windows with PHP 5.2.3 and MySQL 5.0.37.

       
mirkob's avatar
mirkob
74 posts
16 years ago
mirkob's avatar mirkob

Hi Travis,

Your module is very cool. However, I’ve always have a ERROR message in the structure tree beside the title of the pages when I try to move them. They get moved and everything seems working… but I get the ERROR word in red. Do you know what is the problem? (I decided to start using EE too, but don’t send back me the aiga site yet.. :ahhh: I’m still learning)

Thanks Mirko

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

@mirkob make sure you have PHP5 PM me a super admin login if you confirm you do

       
First 13 14 15 16 17 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.