Posts by jamiekingmedia

    Hello Tony, and everyone else who's contributed.
    I found this post, while looking for an answer to the very same question.
    I had;

    perch_shop_order_addresses_form, and

    All on the same page (showing and hiding with IF-statements of course).

    My problem: The same as you Tony, the mysterious OK! turned into "Log in".

    Here is what I discovered:
    The <input> id="" is set as id="submit" on a few of those form in the Templates.
    I changed the ID to "submit1", "submit2" etc on each template I used, and it seemed to fix the problem.
    I tested this a few times over, but its not a comprehensive test, but I feel the ID's on the submit buttons are the issue. - Hope this helps you and others.

    Hello, if you don't mind I'd like to show my own solution to this, which others might find useful or be able to improve on?

    So I wanted a way to upload a banner image into a blog post, and a .webp version of the same image, all coded under the <picture> element.

    I used Drew's example code above, and added in a type="file" to upload the webp file version (comes with issues). Here's my full code;

    1. <picture>
    2.     <source srcset="<perch:blog id="banner" type="image" label="Banner Webp" replace=".jpg|.webp" />">
    3.     <perch:blog id="webp" type="file" label="Webp for banner" bucket="banner-img" order="2">
    4.     <img src="<perch:blog id="banner" type="image" label="Banner" bucket="banner-img" order="1" />" class="responsive">
    5. </picture>

    So the perch:blog 'file' field allows me to upload a .webp file (however), there's no confirmation the file was uploaded and you cannot see the file in the Assets folders. You just have to assume it uploaded ok, and test the public url to see if it worked. Either way, the .webp file uploads to my server, and I can confirm that by looking at the perch resources folders via ftp.

    So the code Drew suggested, will then replace the file extension from .jpg to .webp and because the .webp file successfully uploaded to my server, the browser finds the .webp version and uses it instead of the .jpg version. (confirmed using Chrome Dev console and under the 'Network' tab to see loaded files.

    I hope this maybe helps some of you, and perhaps inspires our skilled developers to improve this.
    Of course, there may by now be a better solution or .webp support in Perch, so do check latest documentation. Before I created this solution, I used the type="file" field for .webp files and didnt see any confirmation of upload. It was only when checking via ftp I saw the files did indeed upload.

    I've just started looking at a multi-language site, so would be interested in any example code or pointers to follow on this.
    I think I will follow strategy two.
    So any help with how to start this I'd be most grateful

    Is there anyway to search or sort blog posts then, in standard Perch?
    If its a case of only available in Perch RunWay, then someone needs to explain to me the difference between Perch and Runway. I can't find any benefits having read about them so far.
    It comes across like runway is for 'bigger' sites, but why on earth a simple "search for post" in Admin or "Sort by Name" in blog admin isn't available as standard is a bit bizare. Surely Runway gives us more than just this small benefit?

    tbh, I dont think I really understand what Runway is :(

    Thanks Byron, never knew this, otherwise would have tried. Suppose I should have thought more logically and realised Perch had debug mode.

    Anyway, I set this up and tried debug when saving a blog post.
    It generated a log message, could not see any errors. Most of the message seemed to confirm data was being saved to the DB as desired.
    But still no green "success" message at the top.
    Let me double check if I can upgrade perch 1 version, and see if that fixes it. I don't think there is a blog app update over what I already have installed.

    Hi Perch fans,
    I do apologise for a trivial question, I did search online and in the forum and couldn't find anything.
    Blog App: When I save a post, there is no notification on screen to say the post was saved. The screen just jumps from the bottom, to the top and that is it.
    On Perch: Content I receive the green "Success" message when saving content.
    Is this how perch:blog works, or would there be a problem with my install and setup somewhere?

    Perch: 3.1.4 and Blog: 5.6.1.
    No Chrome console errors. Using a customised post.php page.