PhocaPDF and Joomla 2.5.20 and T3-Framework
Posted: 08 May 2014, 22:45
Hello, I have successfully phoca pdf integrated into my T3 template. Work even with font-awesome.
Here is the solution:
After installation of phoca pdf files which need to be adjusted for the blog layout.
e.g. "Standard Template" -> \ components \ com_content \ views \ article \ tmpl \ default.php
\ components \ com_content \ views \ category \ tmpl \ blog_item.php
or in a separate template: -> \ templates \ "template name" \ html \ com_content \ article \ default.php
\ templates \ "template name" \ html \ com_content \ category \ blog_item.php
in the upper part (about line 10-17), insert the following:
$phocaPDF = false;
if (JPluginHelper::isEnabled('phocapdf', 'content')) {include_once(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_phocapdf'.DS.'helpers'.DS.'phocapdf.php');
$phocaPDF = PhocaPDFHelper::getPhocaPDFContentIcon($this->item, $params);}
and from (about line 111-121) adjust the range to display the buttons as follows:
<?php if ($params->get('show_print_icon')) : ?>
<li class="actions"> <?php echo $phocaPDF; ?>
<?php endif; ?>
<?php if ($params->get('show_email_icon')) : ?>
<li class="email-icon"> <?php echo JHtml::_('icon.email', $this->item, $params); ?> </li>
<?php endif; ?>
<?php if ($canEdit) : ?>
<li class="edit-icon"> <?php echo JHtml::_('icon.edit', $this->item, $params); ?> </li>
<?php endif; ?>
In order for the PDF - Awesome Font symbol also supports must be adapted to this file "line 66":
--> \administrator\components\com_phocapdf\helpers\phocapdf.php
$text = '<i class="icon-file-text"></i> '.JText::_('PLG_PHOCAPDF_CONTENT_PDF');
The result you can see in the pictures or try here: http://www.fliegerclub-kamenz.de/index.php/aktuelles
Picture: https://picasaweb.google.com/1084239306 ... directlink
Best regards
Here is the solution:
After installation of phoca pdf files which need to be adjusted for the blog layout.
e.g. "Standard Template" -> \ components \ com_content \ views \ article \ tmpl \ default.php
\ components \ com_content \ views \ category \ tmpl \ blog_item.php
or in a separate template: -> \ templates \ "template name" \ html \ com_content \ article \ default.php
\ templates \ "template name" \ html \ com_content \ category \ blog_item.php
in the upper part (about line 10-17), insert the following:
$phocaPDF = false;
if (JPluginHelper::isEnabled('phocapdf', 'content')) {include_once(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_phocapdf'.DS.'helpers'.DS.'phocapdf.php');
$phocaPDF = PhocaPDFHelper::getPhocaPDFContentIcon($this->item, $params);}
and from (about line 111-121) adjust the range to display the buttons as follows:
<?php if ($params->get('show_print_icon')) : ?>
<li class="actions"> <?php echo $phocaPDF; ?>
<?php endif; ?>
<?php if ($params->get('show_email_icon')) : ?>
<li class="email-icon"> <?php echo JHtml::_('icon.email', $this->item, $params); ?> </li>
<?php endif; ?>
<?php if ($canEdit) : ?>
<li class="edit-icon"> <?php echo JHtml::_('icon.edit', $this->item, $params); ?> </li>
<?php endif; ?>
In order for the PDF - Awesome Font symbol also supports must be adapted to this file "line 66":
--> \administrator\components\com_phocapdf\helpers\phocapdf.php
$text = '<i class="icon-file-text"></i> '.JText::_('PLG_PHOCAPDF_CONTENT_PDF');
The result you can see in the pictures or try here: http://www.fliegerclub-kamenz.de/index.php/aktuelles
Picture: https://picasaweb.google.com/1084239306 ... directlink
Best regards