Jump to content

robig

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by robig

  1. Hi I'm currently developing a website for a photographer and the most of the editing needs I#m using FrontEndEditLightbox. https://github.com/rolandtoth/FrontEndEditLightbox So far so good. Now I also want to show the PageList sliding in from the side, like when clicking on the little tree in the admin area. How can I achieve this? I've already seen the xhr - request that is done when clicking and have implemented a javascript doing the same request and parsing that json. But i'm wondering if that is the right way to go? Thanks. robig
  2. Hi! I'm using your Dashboard module. I want to make the bookmarks accessible there. I'v already played with some of the admin helper functions like so: $admin = $this->wire('pages')->get($config->adminRootPageID); function printNav(Page $pa) { echo "<ul>"; foreach($pa->children("check_access=0") as $p) { if(!$p->viewable()) continue; $title = $p->title; if(strlen($title)) { //$icon = $this->getPageIcon($p); echo "<li>"; echo "<a class='has-items has-ajax-items' data-from='topnav-page-$p' data-json='{$p->url}navJSON/' " . "href='$p->url'>$title</a>"; if($p->numChildren) printNav($p); echo "</li>"; } } echo "</ul>"; } echo printNav($admin); It's already displaying the Navbar. But I dont know how the ajax stuff works. Also Ajax isnt required here. So I hope, you can give me a hint how to solve this. Thank you robig
×
×
  • Create New...