Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
Apparantly this doesn't work. It downloads an empty file with the filename >.
downloadlink is an editable field from type="file".

Code: Select all
<a href=" <cms:cloak_url link='<cms:show downloadlink />' force_download='1' />">Click heer</a><br>



This however does work but without the cloaking and without a download:
Code: Select all
<a href="<cms:show downloadlink />"/>Klik hier</a><br>


info: cloak_url
Following will not work
<a href=" <cms:cloak_url link='<cms:show downloadlink />' force_download='1' />">Click heer</a><br>

Following will work
<a href=" <cms:cloak_url link="<cms:show downloadlink />" force_download='1' />">Click heer</a><br>

Spot the difference?
It is in the quotes :)

It makes a difference to Couch as to which kind of quotes you use (or not use at all) to enclose the parameters.
Please take a look at http://www.couchcms.com/docs/concepts/s ... eters.html for a complete discussion.

Hope this helps.
You could also do the following as the link @KK posted alludes to:
Code: Select all
<a href="<cms:cloak_url link=downloadlink force_download='1'/>">Click here</a><br>
Both work perfect! Thanks.
I was misled first because of the coloring in my html editor that made it look as bad HTML. I chose cheesyproofs code for this reason...
4 posts Page 1 of 1