T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. T3-User
  2. General Discussion
  3. Saturday, 22 March 2014
  4.  Subscribe via email
Hey there,

i installed phoca pdf to my site. To add a PDF button to the E-Mail, Print and Edit buttons i had to add some lines of code to the Joomla Core files. This worked for the standard Template.

The Instructions are found here: http://www.phoca.cz/documents/47-phoca-pdf-component/672-phoca-pdf-installation-and-usage-joomla-3

One of these files lies at

components/com_content/views/article/tmpl/default.php

It looks like T3 overwrites this files or ignores them. I managed to find some corresponding files for the T3_BS2 and T3_BS3 templates at

plugins/system/t3/base/html/com_content/article/default.php
plugins/system/t3/base-b3/html/com_content/article/default.php

The default.php are the same ones, as far as i can tell. I inserted the code but the PDF button didnĀ“t appear. Did i grab the wrong files?

Regards
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

These file are correct.
Though, you need to check if your template is overwrite these files or not.

It should be templates/t3_blank/html/com_content/article/default.php
It should be templates/t3_bs3_blank/html/com_content/article/default.php

You can try to clear the browser cache and check again.

Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
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: Fliegerclub Kamenz


Best regards
Attachments (5)
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi KNX,

Could you please explain your issue in English? We can only provide support in English.

Gardner.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.