Posts by dazglaser

    Thanks pal, All sorted & everything behaving correctly now.


    For others with the same problem:


    This was what I used in 'archive.php' template, which worked for me.


    because this didn't work.

    Code
    1. 'category' => perch_get('cat'),

    perch_get('cat') was only returning the category (general) and not the whole category slug (news/general). Hope that makes sense.


    I'd just like to thank Hoops78 for his input and help, it's very much appreciated.

    Hi Hoops78,


    Thanks for that, I've now sorted the clean post url problem however, It seems to have generated a further problem.


    Now my Category links return seem to be not returning all the articles within that category. Have you ever seen this behaviour before?


    You can take a look here: https://edwardshoyle.co.uk/news


    Hi Hoops78,


    Thanks for your reply, it's very much appriciated.


    I can confirm it is Runway v3.2 & I have now updated post title to reflect that.

    I followed your instructions & removed all the rewrite rules in the htaccess file.

    used the settings you illustrated in your example but still get a 404 error.


    Can I just confirm the setting for 'Blog post page path' is '/news/{postSlug}' & 'Slug format' is '{postTitle}'?


    I really have no idea what is going on here. These are my settings:


    Hi all,


    I'm trying to get the clean URLs working for the blog post urls. I've added

    Code
    1. RewriteRule ^news/([a-zA-Z0-9-/]+)$ /news/post.php?p=$1 [L]

    to my .htaccess file. and also changed the 'Blog post page path' setting to '/news/{postSlug}' as per the instructions, but just get a 404 message when I click through to the 'post' page. This is my full .htaccess file:

    Might be also worth mentioning that I've renamed the folder containing the blog page templates to 'news' (perch/templates/pages/news). So the page location and routes for the 'news list' page is '/news' which works fine. The page location and routes for the 'post' page is '/news/post.php'. Any help or guidance would be very much appreciated.


    Daz

    Hi All,


    I'm wanting to set a default values for all products already in my Perch Shop and then update all the products once I've updated & uploaded 'product.html' file.


    I'd like to have all products 'requires_shipping' set to true (yes).


    I'd also like to know how I set dynamic fields to do the same i.e. <perch:shop id="show_productrating" type="checkbox" label="Show Product Rating" value="1" default="1">


    Many thanks in advance


    Daz

    I'm having problems getting an order to show in the 'Orders' app if I apply any 'status' within checkout.php:

    Any help and direction here would be very much appreciated.


    Actually, if I change the status to 100 or below the order disappears from the 'Orders' app. Is this supposed to happen?


    Also, what relevance/effect do the index numbers have?

    Hi,


    If you change the name of the default category:


    1. // default template
    2. $template = 'categorylevel_1.html';

    it doesn't actually use that template, it only uses category.html for level 1.


    If I then put my level 1 code into category.html it breaks the actual category system in Perch CMS.


    Does that make sense?


    I'm just trying to specify another template for level 1 other than the default category.html

    I thought it was just me being stupid.


    I'm surprised that such a simple thing (correctly formatted nested lists ) be so difficult to implement.


    This was Perch's original selling point - "A CMS should not be dictating your front-end code. With Perch, you bring your own code to your project.".


    Think this is why I went down this route, maybe the answer is something similar?

    This is the method I tried originally but couldn't get the list nested correctly.


    I've just tried again and just seem to get unexpected results.

    I've tried and number of variations, placing <perch:before>, <perch:if id="catDepth" value="2" match="eq"> etc in various configurations but none of them seem to provide a correctly nested list, i.e.

    Code
    1. <ul class="ulv1">
    2.     <li class="llv1">
    3.         <a class="alv1">Level 1 Cat Title</a>
    4.         <ul class="ulv2">
    5.             <li class="llv2">
    6.                 <a class="alv2">Level 2 Cat Title</a>
    7.             </li>
    8.         </ul>
    9.     </li>
    10. </ul>


    This is what I'm working with:

    This workup is for 2 category levels (catDepth=2) but ultimately I'm trying to do 4 category levels.

    Any help on how I structure this to get the desired outcome would be very much appreciated.

    To clarify, I'm trying to display my product categories as a drop down menu using nested list items something like this example: http://itsaboutyou.co/DropMenu/index.html


    I just thought I needed the multiple queries so that I can have the nested list items like this below?


    Hope that makes sense.

    Not really - thought that's how I tap into each category sub level.


    Don't know if this has any impact on a solution but I'm also running a query to determine whether to display the item or not.

    Not really working as I'd expect for the sub items, anyway this is what I currently have in each of the category templates:


    sidebar.html



    sidebar_subs.html

    Code
    1. <perch:before>
    2. <ul class="ulv2 <perch:if id="catPath" match="eq" value="{currentCat}">active</perch:if>">
    3. </perch:before>
    4. <li class="lilv2">
    5. <a class="alv2 <perch:if id="catPath" match="eq" value="{ctS}">active</perch:if>" href="/<perch:category id="pge" value="{pge}">?ctS=<perch:category id="catPath">&ctT=<perch:category id="catTitle">&lyO=<perch:category id="lyO" value="{lyO}">"><perch:category id="catTitle" type="smarttext" label="Title" required="true" /></a>
    6. </li>
    7. <perch:after>
    8. </ul>
    9. </perch:after>

    Hi,


    I'm using Perch Runway and I'm trying to create a side menu using perch_categories([ });


    I currently have 2 layers (each with their own template) that work fine but want to extend this to 4 and really would appreciate some help/guidance.


    This is what I have currently in a layout template which specifies the templates for each layer:



    Once again any help would be very much appreciated.


    Daz