Saturday, 18 May 2019
  1 Replies
  826 Visits
0
Votes
Undo
Hi,

I would like to make some customization in the Event detail page which is possible with the "custom layout". Also I found how I can make conditional formating to leave a field blank if there's no content -> https://www.jevents.net/frequently-asked-questions/handling-missing-values-in-custom-layouts

But I would like to show the field "{{Uploaded File Href 1:JEV_FILE_HREF_1}}" formatted this way:
<a href="{{Uploaded File Href 1:JEV_FILE_HREF_1}}" target="_blank"><span uk-icon="icon: file-pdf; ratio: 3">

With this formatting it just shows a PDF icon instead of the text link.

Is it possible to make something like IF Uploaded File Href 1:JEV_FILE_HREF_1 is NULL or "" show nothing else <a href="{{Uploaded File Href 1:JEV_FILE_HREF_1}}" target="_blank"><span uk-icon="icon: file-pdf; ratio: 3"> ?

I tried this way but without success:
{{Uploaded File Href 1:<a href="{{Uploaded File Href 1:JEV_FILE_HREF_1}}" target="_blank"><span uk-icon="icon: file-pdf; ratio: 3"></span></a>#Uploaded File Href 1 is %s#Uploaded File Href 1}}

Thanks for your help.

Fabian
5 years ago
·
#210836
Accepted Answer
0
Votes
Undo
Try:

{{Uploaded File Href 1EV_FILE_HREF_1#<a href="%s" target="_blank"><span uk-icon="icon: file-pdf; ratio: 3"></span></a>#no file uploaded}}

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

5 years ago
·
#210836
Accepted Answer
0
Votes
Undo
Try:

{{Uploaded File Href 1EV_FILE_HREF_1#<a href="%s" target="_blank"><span uk-icon="icon: file-pdf; ratio: 3"></span></a>#no file uploaded}}

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

There are no replies made for this post yet.