Jump to content

palacios000

Members
  • Posts

    133
  • Joined

  • Last visited

Posts posted by palacios000

  1. 1 hour ago, bernhard said:

    Maybe, but I don't think so. Why would one want to do that?

    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

    • Thanks 1
  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!

    • Like 2
  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. On 12/3/2020 at 6:38 PM, horst said:

    EXIF data is stripped out with every processing function that uses GD-lib. So, if you just use creating a 100% width "variation" and store it as the "new" original image, all your EXIF data is lost. (GD-lib simply does not keep any image markers by design. Historically it was build to create small images for the web, and everything that may bloat filesize is dropped)

    PW every time reads the EXIF data from the original image that regularly will be kept untouched.

    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. 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!

    • Like 1
  7. 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!

  8. 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!

  9. 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!

  10. 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.

     

  11. 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?

  12. 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.

  13. 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


     

    • Like 2
  14. On 4/11/2018 at 12:13 PM, Pete said:

    I'm having similar issues to @palacios000 - it seems that ProCache sometimes messes with this. Seems fine on desktop at the moment but can't make the cookie stick on mobile?

    At the end I used the cookie script from Iubenda... It works well and the client pays for it anyway!

×
×
  • Create New...