Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hello I already tried finding an answer to my problem via forum search but couldn't find anything.

For a client I'm setting up a small website where they can update small areas like events and recent offers in the form of a pdf-file.

The link is all set up and shouldn't be touched by them so I'm looking for a way that they can simply just replace the corresponding pdf-file.

I imagine the solution would be to simply give a link at backend to open the kcfinder and get going.

How can I insert that link to the backend?

Tank you for your help!
Capzuwa
Hi Capzuwa :)

The most straightforward solution that comes to my mind is the use of type 'file' editable region (http://www.couchcms.com/docs/tags-refer ... /file.html).

Since there only will be one link on the frontend, simply define one 'file' region in the template e.g.
Code: Select all
<cms:editable 
     name='my_pdf_file'
     label='Downloadable PDF File'
     desc='Upload the file here'
     type='file'
/>

The client can now upload a new file and select that into the region whenever required.

On the frontend the coding will never change and could be e.g.
Code: Select all
<a href="<cms:show my_pdf_file />">Download PDF</a>

Hope it helps.
2 posts Page 1 of 1
cron