Posts by JordinB

    Hi,

    Is it possible to use an id within a perch:related object as part of the collection item title or slug ?


    I ask because I have the following collection template:



    Code
    1. <perch:content id="slug" type="slug" for="name" label="URL Slug" />
    2. <perch:related id="fabric" collection="Fabrics" label="Fabric" max="1" required />
    3. <perch:content id="name" /><perch:content id="slug" />
    4. </perch:related>
    5. <perch:content id="name" type="text" label="Color Name" title required />


    As you can see it has a relation to fabrics with max=1. I'd like to be able to use the name from the related object as part of the title and slug of the main collection item.


    is this possible?

    is docker passing the server host name as the staging domain or localhost to the php inside the container?


    if you setup a simple php test page and var_dump($_SERVER); what do you get for the host name within the container ?

    right no update through the product importer, but you could use the PerchShop_Products factory.


    As you loop through your api imported products, use the PerchShop_Products factory object to find the current product in the database, then you can update the price (or other fields) just before importing using the product importer.

    Which version of perch are you using presently ? Go to your perch login page, inspect the page and check the version that is appended to the styles.css link:


    Also V2 -> V3 was a free upgrade, so a V2 license works for V3.


    So just to be sure, the license key is for a V2 or 3 and the installation of perch is V3 ?

    Gotta love google for this :-)

    @ref: https://www.zimplicit.se/en/kn…t-csv-file-html-table-php

    If you're getting that while editing content in the CMS i would tend to suggest the text editor is not properly sanitizing the input text. Try with a different editor, change the editor attribut on the textarea field and see if you get the same issue.


    First though, check the HTML source of your text editor input to see if there is any wierd markup. I suspect there may be and this is what would be triggering modsec delivering the 403.


    If you do have wierd html in the source, scan your computer, disable browser extentions and see if that fixes the issue. I've seen an issue simlar like this before (not with perch though) where someone had installed aparently "inadvertanly" as browser extension that was injecting iframes to porn sites in their realestate listing page.

    From your cPanel, go to the MySQL databases, you’ll need to create a new database AND a new database user. Create one of each and use a strong password please. Once both are created there is an option on the same page to add the user to the database. Select the database and the user then click the button to add. Once you do this it will ask you to select the permissions to give the user on the database, just select “grant all“ then save. You’re going to need the database and user information when installing Perch. When you get there, the host entry should be left to “localhost”.


    Note some of the terminology may be slightly different, i’m writing this from memory so... you know, there may be some differences, but this is the general procedure.

    You can create a new region in an inline script tag on the page just before you reference the test.js and have php render what you need. Ex:


    PHP
    1. <script>
    2. <?php perch_content(“JsVars”); ?>
    3. </script>
    4. <script src=“test.js” ></script>

    And the template can be:


    Code
    1. var test1 =“<perch:content id=“my_var” type=“text” />”;


    This is just one way, but it works. Sorry if I messed up some pseudo code here, I’m on my phone.8o

    Ok how about this. I have an app that doesn't deal with content at all, rather event notifications. I don't want it to be shown within the MySite menu because it has nothing to do with content and a content editor would not need to use it. But i can't place a link to it anywhere else. It would be like if the backup app which is available from within the settings sub nav was a user contributed app and was placed within MySite rather than Settings. It doesn't make sense there.


    I feel like often the assumption is that any user who is not the developer of the site is either not able or not concerned with the site management. I think its dangerous somewhat to make this assumption because for one its simply just not true. I have clients who do use the backend, manage users and roles even though they are not developers as new members are onboarded at their place of work. Being able to place an app into different menu item locations is not a huge request i don't think especially since there's a class and function that builds the menu. it could easily append extra items depending on a unique menu key. It would also open up options for better custom app integration into perch and since it looks like Drew is looking to do less on the app front and more on the core, allowing us to hook into these menus to add items would seem to make sense to me.


    Just my opinion here.

    Yeah what i do presently is to add a smart bar with tabs, one for the main content and depending on permissions, add a configuration tab something like:


    You see here the integrations tab only shows for roles with that permission, but ideally, i would like to take it out of the CMS content managment and place it under settings adding a new item where the arrow indicates. because the integrations are not about content but how the app behaves.