Manol

Members
  • Content count

    269
  • Joined

  • Last visited

Community Reputation

114 Excellent

About Manol

  • Rank
    Distinguished Member

Profile Information

  • Gender
    Male
  • Location
    spain

Recent Profile Visitors

4,388 profile views
  1. <?php $pdf = $modules->get('WirePDF'); $pdf->pageFormat = 'A4'; $pdf->bottomMargin = 10; $mpdf = $pdf->mpdf; $mpdf->AddPageByArray(array( 'orientation' => 'L', 'mgl' => '50', 'mgr' => '50', 'mgt' => '50', 'mgb' => '50', 'mgh' => '10', 'mgf' => '10', )); ?> Still not getting the margin within header and body, not sure if I've defined it the right way
  2. Does anybody know how to solve with Pages2Pdf second page content top margin?, I attach an image so you can see that the paragraph hasn't got any padding or margin although is set.
  3. That look very promising I'll give it a try
  4. Hello forum. I've about 10000 vehicles to filter in a table in the frontend with about 10 fields, c3, title, image, km, date, axes, url ... in the past I did something similar with angular but probably there are to many items to filter with this technology. It will be a kind of excel table with filters. What do you think? is it better to filter them in php with pw api or angular would be better, any other ideas? Thanks.
  5. Trying to resize an image that way but gives me a 500 error //OPTION A (500 error) echo "<img src='{$page->images->eq(0)->resize(340,480)->url}' alt=''>" //OPTION B (500 erro either) $myImage = $page->images->eq(0); $myResized = $myImage->resize(340,480); echo "<img src='{$myResized->url}' alt=''>"
  6. I Installed a fresh processwire classic-site in an Ubuntu 16.04 machine to check if it would work, but still can't access other pages than the root one.
  7. With virtualmin installed, you get virtual servers and the path for each one is: /home/myweb_1/public_html /home/myweb_2/public_html /home/myweb_3/public_html
  8. Hello. I host my pages in AWS, I had all installed in a ubuntu 14 with virtualmin and all worked perfectly until I installed a new machine with ubuntu 16.04 (php 7...) now all subpages and /processwire point to the root url. I've followed those links without exit. Has anybody faced the same problem?, Any ideas?
  9. Yes I'm running PW 3, thank you BitPoet, now is working perfectly.
  10. Any ideas how to solve: Error: Class 'Pagefiles' not found (line 38 of /home/aristol/public_html/site/modules/FieldtypePDF/FieldtypePDF/PagePDFs.php) Thank you.
  11. To install a fresh pw site I use a bitnami server that way: wget https://bitnami.com/redirect/to/100724/bitnami-processwire-2.7.2-1-module-linux-x64-installer.run chmod a+x bitnami-wordpress-4.5-1-module-linux-x64-installer.run sudo ./bitnami-wordpress-4.5-1-module-linux-x64-installer.run It installs pw under /opt/bitnami/apps/processwire. Is there an easy way to install multiple instances of pw in different folders?
  12. Is there a possibility to preselect a radio button list option in the field?
  13. Hi nmendes, awesome module, don't know if you're still maintaining it. I think a couple improvements could be done: Would be the possibility to mimic the pw structure under a folder within a bucket that way many different webpages could use the same bucket ( because the number of buckets per user is limited) That one would be the best if you could. Not mimic pw structure but use S3 as the place to save the files, because Gb price on a server is far more expensive than using S3 (used by dropbox, spotify and other big companies), if you've a page with many videos, audios... Thanks and congratulations.
  14. I'm using PW 2.6.1 $markas_cached = $cache->get("marcas", "+1 second", function($pages) { $markas = ["DAF", "IVECO", "LIEBHERR", "MAN", "MERCEDES", "RENAULT", "SCANIA", "SCHMITZ", "VOLVO"]; return $markas; }); echo json_encode($cache->get("marcas")); echo json_encode($markas_cached); I've changed array values manually $markas = ["DAF", "IVECO"] with different times with the template way but the array values never change. Any ideas.
  15. This is far more than I expected, awesome pw, thank you.