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

Updating the Pages Nested Menu plugin for use with EE 2.0

Development and Programming

Kevin Miller's avatar
Kevin Miller
11 posts
15 years ago
Kevin Miller's avatar Kevin Miller

I’m currently updating Marc Huot’s Pages Nested Menu plugin so it will function with Expression Engine 2. I have followed the guidelines set out at expressionengine.com and the advice found in the good article at devot-ee.com.

Progress has been halted by this error:

Fatal error: Call to undefined method EE_Config::ini() in /PATH-REMOVED/system/expressionengine/third_party/pages_nested_menu/pi.pages_nested_menu.php on line 80

line 80 in my reworked plugin file reads

$pages = $this->EE->config->ini('site_pages');

Can anyone suggest what might be amiss with that line? Happy to provide as much additional info as might be useful.

thanks

       
iain's avatar
iain
317 posts
15 years ago
iain's avatar iain

I think this is what you’re looking for.

$pages = $this->EE->config->item('site_pages');

Bear in mind, I think from 1.6.9 the pages array was updated by EL, so that may return a different array structure than Mark was working with when he wrote the plugin.

       
Kevin Miller's avatar
Kevin Miller
11 posts
15 years ago
Kevin Miller's avatar Kevin Miller

Thanks Iain, that’s helpful. Having made the change you suggested I can see that I need to do some additional reworking to Marc’s PHP to take the additional dimension in the site_pages array into account. I’ll post back here if (but hopefully when) I get this to work.

       
Kevin Miller's avatar
Kevin Miller
11 posts
15 years ago
Kevin Miller's avatar Kevin Miller

If anyone has any insight into what could be done to tackle the following error (notice) I’d really appreciate it:

A PHP Error was encountered Severity: Notice Message: Undefined index: title Filename: pages_nested_menu/pi.pages_nested_menu.php Line Number: 212

Line 212 is:

$base[$seg]['order'] = (String)$this->element($order, $this->titles->result[$title_counter], $this->titles->result[$title_counter]['title']);
       
Etheya's avatar
Etheya
213 posts
14 years ago
Etheya's avatar Etheya

Hi Kevin,

Did you get this to work at all… ive got a similar issue myself, looking for a way to use the exp:pages_nested_menu in EE2…

       
Kevin Miller's avatar
Kevin Miller
11 posts
14 years ago
Kevin Miller's avatar Kevin Miller

No, I abandoned the nested menus approach and redid the way I went about building the menus on my client’s website. I’m now using the Channel Category Archive tag to build their menus.

Sorry to be of zero help with reworking the nested menus plugin.

Good luck

       
nathanpitman's avatar
nathanpitman
531 posts
12 years ago
nathanpitman's avatar nathanpitman

I’m interested to know if anyone got anywhere with this - or was a migration of this plug-in to EE2.x a complete dead end?

Update: I managed ot get this plug-in working with EE2.x. I’ve thrown a version of it up on Github, there may still be issues so feel free to fork it and let me know of anything that doesn’t work as expected.

https://github.com/ninefour/pages_nested_menu.pi.ee_addon

😊

       

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.