tooth-paste

Members
  • Content Count

    133
  • Joined

  • Last visited

Community Reputation

12 Good

About tooth-paste

  • Rank
    Sr. Member

Profile Information

  • Gender
    Not Telling
  • Location
    Netherlands

Recent Profile Visitors

1,797 profile views
  1. tooth-paste

    Please, get a hamster!
  2. tooth-paste

    Thanks!!
  3. tooth-paste

    I would like a logout button on the front-end. I found this thread, but can not get it to work. This is my button: <a href="/admin/login/logout">Uitloggen</a> /site/ready.php wire()->addHookBefore("ProcessLogin::executeLogout", null, "setRedirect"); function setRedirect(HookEvent $event) { $event->object->setLogoutURL(wire('pages')->get('/')->httpUrl); } In the admin I can not find a page on '/admin/login/logout'.
  4. tooth-paste

    Thx! Works great!
  5. tooth-paste

    Where can I find these fields?
  6. tooth-paste

    I found this but these are there own profile. And the fields can not be found in these settings. These are the fields I want to get rid off.
  7. tooth-paste

    I created a user who can add members. Is it possible to hide the field 'Admin field', 'Images' and 'Biography' on a profile page in the admin?
  8. tooth-paste

    Hi, How can I combine these two scripts to add pagination and show 10 items max? $items = $page->portal_bestanden; foreach ($items as $item) { $name = str_replace("_", " ", $item->name); echo '<div class="row" style="padding:7px 0 5px 0"> <div class="col-md-6"> <a href="'. $item->url .'">'. $name .'</a><br /> </div> <div class="col-md-2"> '. $item->filesizeStr .'<br /> </div> <div class="col-md-4"> '. $item->description .'<br /> </div> </div> <div class="row"> <div class="col-md-12 lijn"> <div class="lijn"></div> </div> </div>'; } and $pagination = $items->renderPager(array( 'nextItemLabel' => "Volgende", 'previousItemLabel' => "Vorige" )); echo $pagination;
  9. tooth-paste

    Thank you! that did the trick!
  10. tooth-paste

    Hi, I want to show 'All documents' from different pages. My tree is like this: -Documents --Docs A (template=portal-files, field=portal_bestanden) --Docs B (template=portal-files, field=portal_bestanden) --Docs C (template=portal-files, field=portal_bestanden) On every page (Docs A for instance), different files are uploaded This is my code. The output are only the files from the first page. $items = $pages->get("template=portal-files")->portal_bestanden; foreach ($items as $item) { $name = str_replace("_", " ", $item->name); echo '<div class="row" style="padding:7px 0 5px 0"> <div class="col-md-6"> <a href="'. $item->url .'">'. $name .'</a><br /> </div> <div class="col-md-2"> '. $item->filesizeStr .'<br /> </div> <div class="col-md-4"> '. $item->description .'<br /> </div> </div> <div class="row"> <div class="col-md-12 lijn"> <div class="lijn"></div> </div> </div>'; }
  11. tooth-paste

    Help, I'am lost here! Goal: show all movies from different children. Tree: -Movies --Comedy (this page contains field with movies ) --SciFi (this page contains field with movies ) --Thiller (this page contains field with movies ) $items = $pages->get("/portal/movies/")->children; foreach ($items as $item) { $name = str_replace("_", " ", $item->name); echo '<div class="row" style="padding:7px 0 5px 0"> <div class="col-md-6"> <a href="'. $item->url .'">'. $name .'</a><br /> </div> <div class="col-md-2"> '. $item->filesizeStr .'<br /> </div> <div class="col-md-4"> '. $item->description .'<br /> </div> </div> <div class="row"> <div class="col-md-12 lijn"> <div class="lijn"></div> </div> </div>'; }
  12. tooth-paste

    That was it! Thx!
  13. tooth-paste

    Do you mean like this? It does not work. $files = $pages->get("/portal/")->portal_file; $name = str_replace("_", "", $file->name); foreach ($files as $file) { echo '<div class="row"> <div class="col-md-12"> <a href="'. $file->url .'">'. $name .'</a><br /> </div> </div>'; }
  14. tooth-paste

    I'am using the file field type. To output the name I use $file->name. The problem is when I upload a file with a no breaking space, an underscore is added. Name of the file.pdf Becomes Name_of_the_file.pdf How can I remove the underscore?
  15. tooth-paste

    I'am having two issues on which I could use some tips. I'am creating a Portal with pages only accessible by specific users. 1. Best practice for making a simple login page that, after login, redirects to hidden pages. 2. Supersimple way, for my client, to add new members.