Posts by LisaM

    OK, so in Perch 2 I used to be able to set size="s" (or m, etc) on the perch textarea field and then set the buttons shown on the Redactor editor accordingly. For example, in some instances I don't want the user to have access to all the buttons.


    So currently I have this in addons/plugins/editors/config.js:

    How can I specify different buttons and formatting, etc according to the size value I add to the textarea in the template? It was a really useful function to stop non-tech savvy editors from screwing things up!

    Yep. Just a shared region on the footer of all pages. The full code in the template file is:


    Code
    1. <perch:if exists="terms"><span><a href="<perch:content id="terms" type="file" label="Terms & Conditions PDF" accept="pdf" output="path">" target="_blank">Terms &amp; Conditions</a></span> &nbsp;| &nbsp;</perch:if>

    Which basically hides the link if no file is uploaded. It works, as it shows when a file is uploaded and then disappears again if I delete it. It just isn't showing the url to the file in the href for some reason.

    OK, possible stupid mistake alert here! I haven't been working much with Perch lately (and have pregnancy baby brain) ....


    So I am adding a file upload field and want to output the link in a shared region in the footer of all pages. The file is uploading, but the link on the website is empty:


    Code
    1. <a href="<perch:content id="terms" type="file" label="Terms & Conditions PDF" accept="pdf">" target="_blank">Terms &amp; Conditions</a>

    Am I making an embarassingly obvious mistake here?!