Jump to content

palacios000

Members
  • Posts

    133
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    Italy

Recent Profile Visitors

2,935 profile views

palacios000's Achievements

Sr. Member

Sr. Member (5/6)

35

Reputation

1

Community Answers

  1. I'm using {define xxxx} to define pieces of code I'm using in different parts of .latte files, like buttons, svgs, modals, lists and so on. But it's not possible to import for example a svg icon I defined already in latte directly in a processwire template file. There are solutions to import these bits of code, but they're not as elegant as ideally $rockfrontend->render('components-file.latte', ['component-name' => ['variablename' => 'variablevalue']];
  2. I am so grateful to @bernhard and @FireWire for all the excellent tips and tutorials on how to use better tools to code better website (Latte + PageClasses). Thanks a lot guys for you hard job, I've learned a lot from you. After this little intro of gratitude, I have a question on how you would use the templates available in Latte in conjunction with PW templates. I am referring to templates or block in latte, here https://latte.nette.org/en/template-inheritance#toc-definitions so for example I can crate a button tag inside a .latte file, like "components.latte" and import these bits of code, or "function" inside other .latte files. All this is very nice and useful. But now my question is: is it possible to import a latte block inside a normal processwire.php template? In other words: if I'm in // templates/blog-post.php <?= $rockfrontend->render('components/blog.latte', [// How can I fetch the block tag?]) ?> // templates/components/blog.latte {define tagLabel} <span class="... font-mono">{$tag}</span> {/define} Thanks
  3. My too I'm happy Linux user. I actually tried many years ago to make my Hackintosh, but, luckily, didn't work and I moved from Mac to Linux and never regret it. The freedom you have is priceless. My distro of choice: https://www.bunsenlabs.org/ very clean and stable, based on Debian. As for Adobe, yes, still miss a proper app for Linux. I now use https://affinity.serif.com/ on a dual boot Windows machine. Affinity does pretty much what Adobe does, but it has a reasonable price. File manager: Thunar does the job, but if you want to have fun try Midnight Commander!
  4. Hi, I have some doubts on how is the best way to get some "default" pages and cache them. For example the homepage or contactpage urls need to be present throughout the entire website. Normally I prepend a file in the config.php, something like "_defautlpages.php" and it works fine, but my question is now: do these find() requests get cached somewhere in the templates (procache or normal cache) or they load in every page load? Probably not because there's no page with the "_defautlpages.php" template... Or maybe yes... I know that this won't impact on page speed, as normally I have only half a dozen default pages to load, but it's just a matter of doing things as nice as possible. Thanks for clarifying this existential dilemma!
  5. Would it be not possible to remove all EXIF data on image upload, so PW has a neutral version of the image? Then the person who uploads the photo can check the orientation. My problem now is: when the image gets rendered from PW, the orientation is correct; but when I fetch via http a variation of the same image, as you said EXIF data is lost, so the resized image has wrong orientation.
  6. Hi, is there any update on testing release? I've sent my expression of interest via Google form, but nobody contacted me. Do I need to wait for an email or the production release date?
  7. Thanks a lot for the input! I had the same problem.. this guide helped me to fix the Apache on my Linux machine https://www.digitalocean.com/community/questions/php-7-0-ziparchive-library-is-missing-or-disabled
  8. I found this module, maybe it is of your interest. The module says: // It's called for each page that's being saved, no matter if it's in the backend or in your templates via the api. https://processwire-recipes.com/recipes/extending-page-save-process/
  9. Are you planning to support Snipcart v.3 any soon? Thank you for this great peace of work.
  10. Thank you for providing this great work, there's no doubt the forum is craving to install this module, me included. On the roadmap there is no mention of the proper release, you mention only soft and closed release for the selected few, am I right? Or the full release is going to be on Q2? I know dates are not fixed yet and I don't wont to be pushy, but demand for e-commerce is high now and we need to make decisions on which platform to use for our clients. Thanks!
  11. I'm on BunsenLabs https://www.bunsenlabs.org/ I like it because is very minimal, and all the PC RAM goes where is needed. Unfortunately I still need sometimes to reboot in Windows for Photoshop and publishing software; so far Gimp and Inkscape or Scribus are still behind compared to Win/Mac software.
  12. Thanks for this module. Is there a way to sanitize the description field in order to remove HTML tags? The field I set up to display the default og: description is a textarea with HTML formatting... This is how is rendered on the page: <meta property="og:description" content="&lt;p&gt;La linea di Pomate Freita&amp;nbsp;Bio&amp;... Thanks for your help!
  13. Which animation library do you use for your websites? I'm looking for a simple and light one, there thousands out there in the Internet but most of them look like special effects for action-movies. I like the animations in UIkit, but sometimes I need al little extra or I don't always want to use UIkit for every website. Thanks for your suggestions!
  14. Adding a CSS style on the HTML template does the tick for me. <style> @page { margin-top: 0px; } </style> Source here https://stackoverflow.com/questions/16538109/change-top-margin-of-second-page-using-mpdf
×
×
  • Create New...