Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-03-07 20:17:10
- majorp
- New Member
- Registered: 2008-03-07
- Posts: 3
Using a custom field for dynamic download link
Hello!
I’m trying to use the custom field so that it can be used to insert the file id into the download link url. This is what I have:
A Custom field named “file_id”
(in default form)
<txp:file_download_link id="<txp:custom_field name="file_id" />">
<txp:file_download_name />
</txp:file_download_link>
but is just shows brackets. Is there anyway this can be achieved? If I separate the two tags it works for eg.
<txp:custom_field name="file_id" />
<txp:file_download_link id="WHATEVERNUMBER">
<txp:file_download_name />
</txp:file_download_link>
Thanks.
PS. Just moved over from ExpressionEngine. Thanks for a great and easy system to implement!
Last edited by majorp (2008-03-07 20:18:46)
Offline
Re: Using a custom field for dynamic download link
there are file plugins that will let you use custom fields for this purpose but you can also use asy_wondertag which lets you embed txp tags within tags to a certain extent.
Last edited by iblastoff (2008-03-07 20:23:52)
Offline
#3 2008-03-07 20:58:25
- majorp
- New Member
- Registered: 2008-03-07
- Posts: 3
Re: Using a custom field for dynamic download link
Brilliant! asy_wondertag done the trick. thanks
Offline