Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

87 Excellent

About webhoes

  • Rank
    Sr. Member

Profile Information

  • Gender
  • Location

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Probably. You can also do this and use variables. $print_date = date("jMY", time()); $pdf->save(); $pdf->download('Logbook - ' . $drone->title . ' - ' . $print_date . '.pdf');
  2. Looks very amazing. Wish I could use it for a site I am working on now. Also interested in being an alpha tester.
  3. I keep getting an error for an frontend page to import csv. $wire->modules->get('TableCsvImportExport'); // load module $options = array( 'delimiter' => ',', 'enclosure' => '"', 'convertDecimals' => false, 'multipleValuesSeparator' => '|', 'namesFirstRow' => false ); $page->importTableCsv('importTableCsv', $csvData, $options); For testing page table field is also called importTableCsv
  4. @kongondo, is this also useable for pages in the admin? If you did not create that page, you can not see or edit it. I tried this, but it only work on the frontend and does not block the edit page. // redirect users from pages that are not theirs $this->addHookBefore('Page::render', function ($event) { $page = $event->object; if ($page->template == 'admin') { if (wire('input')->post->id) { $id = wire('input')->post->id; //$notices = $id; if ($id != wire('user')->id) { wire('session')->redirect(wire('config')->urls->admin . "dashboard/"); } } } if ($page->template == 'basic-page') { if ($page->created_users_id != wire('user')->id) { wire('session')->redirect(wire('config')->urls->admin . "dashboard/"); } } }); I am trying to block the smart one's that try to access other pages through the get variable.
  5. I use a textarea on the frontend that is saved in form. In that textarea on the frontpage paragraphs remain visible after save. In the pdf all text is rendered after each other. What is the best way to preserve paragraphs both on the page and the pdf?
  6. Thanks @bernhard that works. The image was also 2000+ pixels wide. That was also a reason it did not show. Not sure why.
  7. I have the pdf render in a function to keep my template clean. On top of the function I do // maps $images = $page->flightplan_images; $image = ""; foreach ($images as $i){ $image .= '<img src="' . $i->url . '" uk-image>'; } Tried both $pdf->write() with some html with $image and $mpdf->WriteHTML() with some html with $image. All is there except for the images. How do I output images in a pdf.
  8. Hello, is it possible to render the input field on a frontend template (for loggedin users only). I tried this: <?php $m = $modules->get('InputfieldLeafletMapMarker'); $m->render(); ?> This generates errors for empty variables. 1× PHP Notice: Trying to get property 'lat' of non-object in ...\InputfieldLeafletMapMarker.module:102 1× PHP Warning: Creating default object from empty value in ...\InputfieldLeafletMapMarker.module:102 1× PHP Notice: Undefined property: stdClass::$lng in ...\InputfieldLeafletMapMarker.module:103 1× PHP Notice: Undefined property: stdClass::$zoom in ...\InputfieldLeafletMapMarker.module:104 1× PHP Notice: Undefined property: stdClass::$address in ...\InputfieldLeafletMapMarker.module:105 1× PHP Notice: Undefined property: stdClass::$status in ...\InputfieldLeafletMapMarker.module:106 2× PHP Notice: Undefined property: stdClass::$status in ...\InputfieldLeafletMapMarker.module:107 1× PHP Notice: Undefined property: stdClass::$raw in ...\InputfieldLeafletMapMarker.module:130
  9. Your right. I did not notice it was not loaded. Thanks @Beluga
  10. Uncaught TypeError: $ is not a function at (index):529 I have the same issue with a new install. In dev tools everything is rendered, just no map at all.
  11. Sorry @kongondo, I was not aware that. Thanks.
  12. I have this module working as it should. When I turn of TracyDebugger I get these errors. Anybody know why this is?
  13. Hello, I have a template that has 4 possible children. Therefor I can not use the auto child page name. I create a new page with a button on the frontend that uses this format: page/add/?parent_id=1078&template_id=87 I tried adding &title=xxx&name=xxx to it but that does not work. Also tried some hooks that also did not work. How can I automatically fill title and name upon creation of a child page?
  14. I made those pages forms that could be updated and after update pull the data from the fields.
  15. Hello, For a Dutch site with padloper a visitor can enter their email. Due to a lot of mis-typing they now also need to confirm their email. How do I change the word "Confirm" to something like "Bevestig email"?
  • Create New...