Add link to template variant?

draelius

New Member
I have created a word doc template (similar to the PDF) but I'm having trouble outputting the link to the view screen. I want to place it right next to the PDF link. Anyone know which file I need to make this edit in?
 
sorry for the late reply!
The file you need to edit is components/com_fabrik/views/list/tmpl/{template}/default_buttons.php

You would add in an additional <li> so replace:

PHP:
<?php }
if ($this->showPDF) {?>
<li class="pdfButton">
<a href="<?php echo $this->pdfLink;?>">
<?php echo $this->buttons->pdf;?>
<span><?php echo JText::_('COM_FABRIK_PDF');?></span>
</a>
</li>
<?php }

with

PHP:
<?php }
if ($this->showPDF) {?>
<li class="pdfButton">
<a href="<?php echo $this->pdfLink;?>">
<?php echo $this->buttons->pdf;?>
<span><?php echo JText::_('COM_FABRIK_PDF');?></span>
</a>
</li>
<?php }?>
<li>
<a href="http://link.to.your.view"><span>Word</span></a>
</li>
<?php
 
Hello,
I am interested by the translation you have done from pdf to word file.

I will like to generate a txt file from my filtered list, instead of pdf.
Can you share your code please or tell me howto operate. I am just a basic programmer.

Thanks
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top