Jump to content

Page List Show Page Id


Soma
 Share

Recommended Posts

Page List Show Page Id

Module prepends page ID in the page list tree labels. Only visible for superusers.

https://github.com/somatonic/PageListShowPageId

And soon on modules repository

http://modules.processwire.com/modules/page-list-show-page-id/

You could also show the page ID or any other field using the template advanced setting for the page tree label. But maybe this is just easier as it doesn't matter what template/pages.

post-100-0-72902500-1378456063_thumb.png

  • Like 5
Link to comment
Share on other sites

interesting,

Busy with "another" PageList Label module to.

- it's using font-awesome

- extra markup is created by jquery / js ( so should be compatible with other PageList Label modules ) 

- some, additions to the existing js ( correct open pages id's in the array after clicked folder page [  config.ProcessPageList.openPageIDs ] )

post-577-0-75144100-1378458523_thumb.png

  • Like 3
Link to comment
Share on other sites

  • 3 years later...

I use a slightly customised version of this useful module and found that the page list additions weren't looking so good in the new Tree dropdown menus, and they aren't needed there anyway.

Solution was an early return if the 'noTags' option is set...

public function addPageIdLabel($event){
    $page = $event->arguments('page');
    $options = $event->arguments('options');
    if(!empty($options['noTags'])) return; // return if this label is for the Tree dropdown menus
    $event->return .= " <span class='helper-info'>($page->id, $page->template)</span> ";
}

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...