Hello,
I am using EVO 1.0.4 with Wayfinder 2.0
I am using Wayfinder to display tabular product data comprising of: part number, description, image and file downloads
The image and file downloads are included as template variables.
It is working really well for me except with the file downloads where I am a little stuck and need the help of a coding guru.
Not all products have file downloads - these as optional where none or any one, two or three can be selected - some have up to 3 different different file downloads:
[+product-download-catalogue+]
[+product-download-install-manual+]
[+product-download-technical+]
This is what I would like to happen:
1. If a catalogue pdf is selected, include:
<a href="[+product-download-catalogue+]" title="Catalogue for [+wf.title+]" target="blank"><img src="/assets/images/mix/pdf-icon.png" /></a>
Otherwise, include nothing for this tv.
2. If an installation pdf is selected, include:
<a href="[+product-download-install-manual+]" title="Installation Manual for [+wf.title+]" target="blank"><img src="/assets/images/mix/pdf-icon.png" /></a>
Otherwise, include nothing for this tv
3. If a technical pdf is selected, include:
<a href="[+product-download-technical+]" title="Technical Data for [+wf.title+]" target="blank"><img src="/assets/images/mix/pdf-icon.png" /></a>
Otherwise, include nothing for this tv
4. If no pdf is selected, nothing should be included in the output.
My wayfinder row template looks like this - but the 3 links / pdf icons are also included for products that do not have pdf files:
<tr>
<td class="col1-4">[+wf.title+]</td>
<td class="col2-4">[+wf.description+]</td>
<td class="col3-4"><a href="[+product-image+]" rel="lightbox" class="th2" title="[+wf.title+] : [+wf.description+]"><img src="[+product-image+]" /></a></td>
<td class="col4-4">
<a href="[+product-download-catalogue+]" title="Catalogue for [+wf.title+]" target="blank"><img src="/assets/images/mix/pdf-icon.png" /></a>
<a href="[+product-download-install-manual+]" title="Installation Manual for [+wf.title+]" target="blank"><img src="/assets/images/mix/pdf-icon.png" /></a>
<a href="[+product-download-technical+]" title="Technical Data for [+wf.title+]" target="blank"><img src="/assets/images/mix/pdf-icon.png" /></a>
</td>
</tr>
</tr>
If I change it to the following, the tv values are inserted / ignored as relevant, but the formatting is not output and the link is not clickable.
<tr>
<td class="col1-4">[+wf.title+]</td>
<td class="col2-4">[+wf.description+]</td>
<td class="col3-4"><a href="[+product-image+]" rel="lightbox" class="th2" title="[+wf.title+] : [+wf.description+]"><img src="[+product-image+]" /></a></td>
<td class="col4-4">[+product-download-catalogue+] [+product-download-install-manual+] [+product-download-technical+]</td>
</tr>
</tr>
Eg: Instead of 3 x:
<a href="[+product-download-technical+]" title="[+wf.title+]" target="blank"><img src="/assets/images/mix/pdf-icon.png" /></a>
It returns 3 x:
[+product-download-technical+]
(eg assets/files/product1/product_Catalogue.pdf assets/files/product2/product2_Catalogue.pdf assets/files/product3/product33_Catalogue.pdf
Can anyone think of a solution to make it work?
Thanks in advance.