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

Pages Crumbs and Pages Nested Menu

Development and Programming

Brent Cartier's avatar
Brent Cartier
87 posts
17 years ago
Brent Cartier's avatar Brent Cartier

Hi Mark,

Just found this thread - awesome plugins! I was wondering if {pnm_page_url} could output the session_id like {path=group/template} does when I set my security preferences to ‘Sessions and Cookies’?

Thanks!

       
jlahijani's avatar
jlahijani
11 posts
17 years ago
jlahijani's avatar jlahijani

Hi Mark,

This plugin is amazing.

One thing I noticed is that it might be bugging out when displaying dates. Here’s my loop:

{exp:pages_nested_menu include_ul="yes" root="/test" depth="5" order="entry_date"} {entry_date format="%Y-%m-%d"} - {pnm_title} {/exp:pages_nested_menu}

It displays the titles perfectly, but it keeps showing the same date in the loop. I think it’s grabbing the date from one post and repeatedly shows only that date.

Keep in mind, the above loop is inside this loop:

{exp:weblog:entries weblog="{my_weblog}” limit=”1”} … {/exp:weblog:entries}

Any ideas?

Thanks again.

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

Incredible! Thanks for the plugins. If only we could get a plugin that replaced the Pages listing with titles instead of the /path/to/page and a way to tie in the multi-entry pages. Then we’d have a usable replacement for Tome!

       
jlahijani's avatar
jlahijani
11 posts
17 years ago
jlahijani's avatar jlahijani

Anyone have a solution to the issue I mentioned above? Was anyone able to replicate it?

       
44sunsets's avatar
44sunsets
42 posts
17 years ago
44sunsets's avatar 44sunsets

jiaha, not sure about this, but try prefixing the date variable with pnm_ as described in the documentation: http://docs.markhuot.com/ee/plugins/pages_nested_menu/

       
44sunsets's avatar
44sunsets
42 posts
17 years ago
44sunsets's avatar 44sunsets

Does anyone know of a way to test to see whether the {exp:pages_nested_menu} tag will output any results? At the moment, it’ll output an empty <ul></ul> even if there are no results. I’m hoping there’s a conditional that I can test for to avoid outputting this invalid XHTML.

It would also be great if you could have a parameter called class that assigns a class attribute to the top level unordered list.

At the moment, this is the code I’m using to generate a list of subpages for the current page:

<div class="subpages">
    {exp:pages_nested_menu root="page_url" include_ul="yes" include_root="no" depth="1" order="custom_order" status="open" parse="inward"}
        <a href="http://{pnm_page_url}" title="{pnm_summary}">{pnm_title}</a>
    {/exp:pages_nested_menu}
</div>   <!-- end subpages -->
       
44sunsets's avatar
44sunsets
42 posts
17 years ago
44sunsets's avatar 44sunsets

Is there a simple way to get pages_crumbs to output the breadcrumb trail in reverse order? I’d like to use it for the document <title>, so the parent pages will appear last instead of first, e.g.

<title>About the creator | About | Homepage</title>
       
tcfleck's avatar
tcfleck
36 posts
17 years ago
tcfleck's avatar tcfleck

Wondering if anyone has a good solution to display pages in a specific order (even if the pages are in separate weblogs).

       
jlahijani's avatar
jlahijani
11 posts
17 years ago
jlahijani's avatar jlahijani

I second that request… being able to set the sort order (ascending or descending) should definitely be an option. Furthermore, the issue I mentioned earlier about displaying dates. This plugin is truly useful.

       
44sunsets's avatar
44sunsets
42 posts
17 years ago
44sunsets's avatar 44sunsets

You can use the REEOrder module to display pages in a custom order in a list, e.g. on a site map page – that’s how I’m using it now. I’m not sure how well it would work across multiple weblogs though.

       
jlahijani's avatar
jlahijani
11 posts
17 years ago
jlahijani's avatar jlahijani

I solved my problem of displaying an article’s date along with formatting by using PHP to format the date:

<?php echo date(“Y-m-d”, “{pnm_entry_date}”); ?>

       
tcfleck's avatar
tcfleck
36 posts
17 years ago
tcfleck's avatar tcfleck

Thanks for the reply. I’m guessing it won’t work across weblogs unfortunately.

       
joelene's avatar
joelene
87 posts
17 years ago
joelene's avatar joelene

I get these errors when debugging with the plugin fresh out of the box (version 1.18)

Notice: Undefined offset: 82 in /home/plugins/pi.pages_nested_menu.php on line 204

Notice: Undefined offset: 82 in /home/plugins/pi.pages_nested_menu.php on line 204

Notice: Undefined offset: 82 in /home/plugins/pi.pages_nested_menu.php on line 205

Notice: Undefined index: in /home/plugins/pi.pages_nested_menu.php on line 254

Can anyone tell me how I can remove these as it causes trouble when using this plugin to output some XML

Thanks!

       
Derek Jones's avatar
Derek Jones
7,561 posts
17 years ago
Derek Jones's avatar Derek Jones

Mark can step in with a fix that addresses his intent, but a quick glance looks like it may just be a bit greedy in assignment of custom fields. Try changing line 202 from

if(isset($base[$seg]) === false)

to

if (! isset($base[$seg]) && isset($this->titles->result[$title_counter]))
       
joelene's avatar
joelene
87 posts
17 years ago
joelene's avatar joelene

That changes things - I now get

Notice: Undefined index: order in /home/plugins/pi.pages_nested_menu.php on line 517 Notice: Undefined index: exp_weblog_titles in /home/plugins/pi.pages_nested_menu.php on line 252 Notice: Undefined index: exp_weblog_titles in /home/plugins/pi.pages_nested_menu.php on line 254 Notice: Undefined index: in /home/plugins/pi.pages_nested_menu.php on line 254 Notice: Undefined index: exp_weblog_titles in /home/plugins/pi.pages_nested_menu.php on line 401

Thanks for your help by the way

       
1 2 3 4 5 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.