Jump to content

tooth-paste

Members
  • Posts

    134
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    Netherlands

Recent Profile Visitors

3,018 profile views

tooth-paste's Achievements

Sr. Member

Sr. Member (5/6)

12

Reputation

1

Community Answers

  1. After updating and move my site to a new server, my tree, modules and other admin pages are empty. Debug is on but doesn't show any errors. The site is working fine. *After reinstall new version the system worked again.
  2. 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'.
  3. 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.
  4. 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?
  5. 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;
  6. 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>'; }
  7. 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>'; }
  8. 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>'; }
  9. 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?
×
×
  • Create New...