Jump to content

palacios000

Members
  • Posts

    133
  • Joined

  • Last visited

Everything posted by palacios000

  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
  15. Yes you guessed right: registered user uploads pdfs on a PW page, which is then rendered like a "folder" and all files are displayed as a list, where the user can browse them... I'm able to make the list neater with some "str_replace" but still it won't be the same as it should. I thought of writing the original file names on a txt file in the same temporary folder where files are saved, or into the session, and with some logic then add the content of the text file on each file->description field, but at the moment it's too complicated for me! Or maybe this could be a feature for the next released version ?. Thanks again for this great module anyway!
  16. Hi! I'd like to keep the original file name. After upload the new sanitised name is not as human-friendly as the original file saved by client on his PC, this is why I was thinking to keep the original name somehow and save it on the file description. In my very modest opinion, this is somthing quite complicated to do, but maybe there is an easy solution.
  17. Is it possible to sort files inside a field "Files"? I've tryed with $page->files("sort=basename"), I guess a selector for files field is not the right way to go... is a solution similar to this the right approach or there is an easier way? Thanks for any input.
  18. Hello again, Has anyone tried to add a file description to the file? I want to mantain the original filename with spaces, capital and special characters, if so I could add them to the file->description and display on the template the description instead of the filename. Is this something at all possible?
  19. Thanks for this great module! I had a problem with my live server, it didn't allowed pdf to be uploaded, and the script fired the message "filetype not allowed". If anyone encounters this problem, the solution is to go on the server settings and tick the "fileinfo" extention in the PHP settings.
  20. I'm looking for experienced developer for a start-up project aimed to win a grant from European Union. The project is a web portal for topics related to biodiversity and farming techniques in the rural area of Europe, specifically in the Alps region. The idea is to build a Processwire website for a region, an Italian valley, and later cloned it for other instances, probably as subdomains. As an indicative example: valsusa.europroject.com should be cloned to valdinon.europroject.com, etc. I am able to take care of all aspects of the single websites, but I will later need a hand on how to clone and optimise the many websites into a single portal, especially in terms of maintenance and performance. Now the bureaucratic part: the EU requires to work in partnership with many players. I am looking for a developer that is able to create an account under the EU projects portal as a company, or a self employed person, with real experience on the project here described. In other words: you should be able to prove that you are a professional with the required skills. Here some details on how to register as a partner (pdf) https://webgate.ec.europa.eu/fpfis/wikis/spaces/flyingpdf/pdfpageexport.action?pageId=311133227 This is the European website where we will apply for our project https://ec.europa.eu/info/funding-tenders/opportunities/portal/screen/home The other thing we need to act before the 23rd of January, in two weeks time... This is the deadline to propose the project. In this short period I need to find a partner/developer that can join the team, if we win the grant then later we can start to work on the details, probably in 6 months time. The developer doesnt need to be European, but if we need to meet in person it helps if the developer is here in Europe. In terms of money involved, please come up with an indicative figure on how the project above can be accomplished and your relevant retribution for your consultancy/practical job. For any questions please write to me on europroject [at] carburo [dot] net Thank you all and I hope I have stimulated your interest, Giulio
  21. At the end I used the cookie script from Iubenda... It works well and the client pays for it anyway!
  22. Sorry I didn’t get how to make work the unsubscribe link inside the newsletter. Does anyone have an example how to implement it?
  23. OK, after a long struggle I manage to find the solution. First, I had problems to add the domain in the App settings. Solved thanks to this post https://stackoverflow.com/questions/8769238/app-domain-is-not-a-valid-domain Then I changed these settings as described here and finally it worked! full post here https://stackoverflow.com/questions/37063685/facebook-oauth-the-domain-of-this-url-isnt-included-in-the-apps-domain
  24. Hi. I think so... I've uploaded a screenshot here Thanks!
×
×
  • Create New...