Posts by Glen

    Hi all


    I am using subcategories to structure my Perch Shop products and as such, I am trying to create a breadcrumb using the category structure, like so...


    Home > Cat Title > Subcat Ttile > Product Name


    So far I have got it to work but it only displays the subcategory (Subcat Title) and not the top category as well.


    Code
    1. <ol class="breadcrumb">
    2. <li class="breadcrumb-item"><a href="/">Home</a></li>
    3. <li class="breadcrumb-item"><perch:categories id="category" set="products"><a href="/<perch:category id="catPath">"><perch:category id="catTitle"></a></perch:categories></li>
    4. <li class="breadcrumb-item active" aria-current="page"><perch:shop id="title" type="text" /></li>
    5. </ol>


    ..how do I get it to display the full category path, please?


    Many thanks as always.


    Glen

    Hi All


    Quick one, is there a way to set the pagination template so that it doesn't show the first page and last page numbers. So for example, it currently displays as...


    1 ... 4 5 6 7 ... 10


    ...I'm trying to display it as simply as...


    4 5 6 7


    ...so just the 'middle' page numbers.


    Many thanks as always


    Glen

    Hi Everyone


    I am currently trying to create some what's on pages and I am wanting to customise the /perch/templates/events/event.html template.


    However, I don't seem to be able to customise the default tags that come with the addon such as eventTitle, eventDateTime and eventDescHTML.


    I would like to change the label="" and add a help="" but it's not appearing. New perch:event fields I add appear and display no problem, it's just editing the supplied fields.


    Any pointers would be much appreciated.


    Glen

    Hi


    I am currently building a new news based website for a client whose current site is in standard Perch but the new site I am building is in a fresh copy of Perch Runway.


    Is there a way to import blog posts from standard Perch into Perch Runway please, to save having to manually copy and paste over 600 blog posts!!!!


    Many thanks


    Glen

    Hi hus_hmd


    So sorry for the delay, I've only just spotted your reply.


    I think periodically would be ok, my idea is to have a tide times page that shows the low tide times and high tide times for the next 7 days (data brought in via the API), but then on another page, use that data to show the next low tide and next high tide.


    Many thanks


    Glen

    Hi everyone


    I’m looking to connect an external API to a standard Perch site but I have never done it before so I was wondering if anyone had and pointers or tips.


    I am wanting to display the local tide times and there is an API available that provides the data for which I’m guessing I can then somehow manipulate and style?


    Many thanks for any help :thumbup:


    Glen

    This is currently possible by using perch_forms at the same time.


    On the Perch comments form you can also post to the Perch forms addon so that when a comment gets submitted, it also posts the data to perch_forms where you can then set up an autoresponder in the form options to say a comment has been left and requires reviewing.


    So, on your comments form template, you would have...


    Code
    1. <perch:form id="comment" method="post" app="perch_comments perch_forms">

    This is currently possible by using perch_forms at the same time.


    On the Perch comments form you can also post to the Perch forms addon so that when a comment gets submitted, it also posts the data to perch_forms where you can then set up an autoresponder in the form options to say a comment has been left and requires reviewing.


    So, on your comments form template, you would have...


    Code
    1. <perch:form id="comment" method="post" app="perch_comments perch_forms">

    Hi Everyone.


    I have a website which uses the comments app so visitors can leave... comments!


    One page now has over 50 comments so I am looking at adding in a button every 10 comments which load the next 10 comments, and so on. Lazy load style


    The site is using Bootstrap 4.6 so I tried using collapse but that only half works. I was wondering if anyone had tried something similar using Perch's pagination tags. The only issue I see is that next_url wants to link to a new page URL when what I am trying to achieve is to display the next set of comments directly underneath on the same page.


    Any pointers would be gratefully received.


    Many thanks


    Glen

    Hi everyone


    I have just launched a new community project, where I am teaming up with a few local businesses and organisations, and have just launched Hunstanton Webcams at https://hunstanton.webcam


    The site uses standard Perch with the forms and comments app. Thank you to Byron Fitzgerald for his help in this forum.


    The aim of the project is to install webcams in key locations around the town of Hunstanton, on the North-West Norfolk coast, so that those that are stuck at home can virtually visit the coast. There is currently only one webcam live on the site but we have a further 3 lined up to be installed.


    Happy viewing


    Glen

    Hi everyone,


    Me again (sorry!).


    Quick question, is there a way to get PerchSystem::redirect('http://example.com/'); to open a new window / tab instead of redirecting in the current window / tab? (just like target="_blank" does).


    Many thanks


    Glen

    Hi Everyone


    I am using <a href="<perch:content id="_page">"> on a template which is being used via a perch_content_custom in order to link to the page that the original content has come from.


    Does anyone know how I can hide the page extension as it currently links to www.url.com/page.php and not www.url.com/page?


    I'm using standard Perch so it is linking to a physical page and I have the .htaccess rewriting etc successfully working too.


    Many thanks


    Glen

    Hi Byron Fitzgerald


    Many thanks for that, the comments now appear.


    Unfortunately however the "3 days ago" line does not. Looking at <perch:showall> the perch ID postAgo is not being passed into the template. So sorry to keep asking but would you know what's missing?


    Many thanks


    Glen