Byron Fitzgerald Student

  • Male
  • from Lincoln
  • Member since Feb 5th 2019
  • Last Activity:
Posts
62
Likes Received
15
Points
325
Profile Hits
115
  • Byron Fitzgerald

    Replied to the thread Combining Collections?.
    Post
    You should be able to use an array of collections as the key.

    (Code, 9 lines)

    Although this might not work with MySQL 5.7 as standard, due to strict mode, though you should be able to update the settings as required
  • Byron Fitzgerald

    Replied to the thread Members App - Image upload.
    Post
    Easiest option would be to set up some tags for verified and un verified. If the user is unverified redirect them to a regular perch form, (you can prefill in any info in hidden fields) and then a user can upload a file that way. Once received you can…
  • Byron Fitzgerald

    Post
    You should be able to use
    (Code, 2 lines)

    You can check the PerchFactoryClass.php file, in the core folder, for a list of all available methods
  • The Gallery app hasn't been updated for a long time, as the functionality of the gallery app can be replicated easily enough. For a normal perch install you can use multiple item regions/repeaters, and for a runway install you also have the additional…
  • Byron Fitzgerald

    Replied to the thread Deleted Asset Cleanup.
    Post
    I believe the clean up occurs on save of a region/collection, so I can only guess that without it being saved in a region it won't be subject to the same clean up rules.

    You could always use a collection or a multiple item region to add the files, and…
  • Byron Fitzgerald

    Replied to the thread Deleted Asset Cleanup.
    Post
    It might be that the asset is still be used by previous revisions of the content region (for the undo functionality). Once the asset is no longer used by the revisions, the asset should be available for cleanup. You can alter this by adding this to your…
  • Byron Fitzgerald

    Post
    You should just need to save the post again to update the slugs
  • Byron Fitzgerald

    Replied to the thread Multi Select.
    Post
    The select_field allows for, multiple inputs, below is an example
    (Code, 4 lines)

  • Byron Fitzgerald

    Replied to the thread Categories as Navigation Items.
    Post
    You could potentially add a category set field to your page attributes template. This should then be accessible through perch navigation function, and then rather than using the subitems tag you can just loop through the categories instead.
  • Byron Fitzgerald

    Post
    You can have multiple apps for a single form, just set it to the following <perch:form id="subscribe" app="perch_mailchimp perch_forms" double-optin="true" />

    As you have a redirection, you'll need to have perch_mailchimp before perch_forms, or the…
  • You could perhaps you the perch if tag, with the different attribute.
    (Code, 3 lines)

  • Byron Fitzgerald

    Post
    A shared region sounds like what you are looking for. You can declare the region anywhere - like a perch layout in your case .
    (Code, 4 lines)


    Combining this with perch_content_custom you can share the data anywhere on your site, whilst letting you use…
  • Byron Fitzgerald

    Replied to the thread Formatting Text.
    Post
    ckeditor isn't installed by default in Perch 3, so you'll either need to add it yourself, or you can change the editor to redactor
  • Byron Fitzgerald

    Replied to the thread Formatting Text.
    Post
    Yes thats right
  • Byron Fitzgerald

    Replied to the thread Formatting Text.
    Post
    Just wanted to make sure I was giving you the right information, hopefully the below helps

    Each website page will use a page template. These should be found in the pages folder in templates. For you I guess this would be
  • Byron Fitzgerald

    Replied to the thread Formatting Text.
    Post
    What version of perch are you running? You should be able to find out in the diagnostics section of the admin area
  • Byron Fitzgerald

    Like (Post)
    You can use perch_post() instead of PerchUtil::post() in @Byron Fitzgerald's solution.
  • Byron Fitzgerald

    Replied to the thread Forms App and redirection.
    Post
    Could you not add a manual redirection in your page file?

    (Code, 3 lines)

    and then have lm_campaign_name_slug as as hidden field
  • Byron Fitzgerald

    Replied to the thread Cannot login.
    Post
    What are the textarea inputs looking like in your template? If your looking to use the WYSIWYG editor it should look similar to below.
    (Code, 2 lines)

    If that looks good are you getting any JS errors in your console?
  • Byron Fitzgerald

    Replied to the thread Before and After inside perch if.
    Post
    The perch:before and perch:after tags are executed only once, Before the collections are displayed, and after the collections are displayed. As your perch:before tags are executed on the second iteration- as the first is seperated - perch won't…