Posts by ian Hobbs

    Hello Gary,


    You can keep using Perch Members for user authentication, but you may have to manage the profiles outside of it. Even if you write a custom form handler to handle the file uploads, there's no public API for locating and updating Members.


    One option is to use a Runway Collection for the profiles and link each member to a Collection item. You'd need to write a custom form handler and use the collection import API to locate and update the Collection items. If you are dealing with images, you can also import them as Perch Assets or perhaps upload them straight to something like Cloudinary and only record the image URL in Perch.

    That's an interesting idea.

    Looking for some clarification on blocks usage.


    1. Does the whole blocks structure need to be represented in a page template?

    A block model with 3 different types of blocks is on the authoring template ( the model )

    And the view only shows1 block at the view template?


    Here's the model




    and here's the view for the page


    Code
    1. <blocks>
    2. <block>
    3. <perch content A....
    4. </block>
    5. </blocks>


    Or should this be rendered with a callback function.?

    Hi,


    I'm debugging an issue on a Perch site using a list/view model. Somehow list items are being duplicated in the DB.

    The perch3_content_index table has ended up with no Indexes the standard 5 col structure is present.


    1. indexID is missing AUTO_INCREMENT.
    2. No Primary, idx_fk , idx_key, idx_key_val and idx_keys

    This site still works but editing throws a mysql error about the missing indexes.


    I'd rather try and reconstruct indexes - wondering what is the best way to go about it.


    Here's the list page code. Is the first statement spawing the duplicates?


    Thanks in advance for any help

    The simplest ( and the best ) approach is to use the built in navigation group function in Perch.

    1. Create a new item in the Navigation Groups section in Perch
    2. Assign that to a page.
    3. Customise the menu with adding links and styling through the navigation templates and application of the perch_navigation functions

    If your creating a custom nav-list that references non perch pages then use the Perch page list methods or a Runway collection and append that to the above

    in the template.


    see https://docs.grabaperch.com/fu…n/perch-pages-navigation/ also look at the navigation templates section.