Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hi, please I need some help:

in admin I have file upload field and download button in frontend (only for one .pdf file download), file is a price list so it should be public download.

code:
Code: Select all
<cms:editable name='pricelist_document' label='Attach document' desc='Upload here' type='file'/>

Code: Select all
<a href="<cms:cloak_url link=pricelist_document />" class="btn btn-brand btn-lg"><i class="fa fa-cloud-download"></i>&nbsp;&nbsp;Download Document</a>


Upload/download works, link works, cloak works - but why is there link url displayed above my download button in frontend and how do I remove it?
Hi,

It is not clear from your code where exactly you have put the <cms:editable> definition.
If not placed within <cms:template> block, the <cms:editable> tag will (in addition to defining the region) also output its content.

Please see viewtopic.php?f=4&t=7292 for details and solution.

Hope it helps.
Doesn't really matter where I placed <cms:editable> in this cace, as long as it's in the right place, as it was.
I've solved URL output showing on my site by adding hidden='1' to editable item.

Maybe I didn't properly described my problem and provided enough info, but it's all okay now.
I'm slowly getting the grip of Couch and it amazes me more every day!
Thanks K for your generous assistance.
(sorry, haven't read it was fixed. Please delete)
4 posts Page 1 of 1
cron