Page 1 of 1

No PDF Icon - JA Template

Posted: 16 Nov 2012, 00:23
by hamss
Hi,
I've successfully installed Phocapdf on J2.5. I am using the template JA-Purity II: joomlart.com/joomla/templates/ja-purity-ii
The PDF-Icon does not appear in the JA-Purity II template, but in the orginal Joomla template. I want it to be appear in the JA-Purity II template too.

Do you have any idea helping me to solve this problem?
Cheers, Hamss

Re: No PDF Icon - JA Template

Posted: 16 Nov 2012, 01:10
by hamss
So now I've found out, that the problem is that JA-Purity doen't use the default Joomla directorys, but it's own.
These files are stored in /plugins/system/jat3/jat3/base-themes/default/html

Few topics ago mosheel wrote "The PDF icon problem was solved after overriding JA PURITY II files." But this says nothing to me..
I've tried to implement the following description, but I just failed: https://www.phoca.cz/documents/47-phoca- ... -and-usage
So how to change these files?
Regards, Hamss

Re: No PDF Icon - JA Template

Posted: 18 Nov 2012, 16:54
by hamss
I did it. I've changed the lines the following way:

<?php
$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);
}
?>

<?php if ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon') || $phocaPDF) : ?>
<ul class="actions">
<?php echo $phocaPDF; ?>
<?php if (!$this->print) : ?>

Re: [DONE] No PDF Icon - JA Template

Posted: 29 Nov 2012, 23:30
by pastvne
To be clear, the path necessary for modification for the ja-purity-ii template is actually:

/public_html/fabrik3/plugins/system/jat3/jat3/base-themes/default/html/com_content/article/default.php

Good idea to backup the default.php and keep a copy of the modified default.php for safekeeping in case re-installation of template overrides it.
-BD

Re: No PDF Icon - JA Template

Posted: 04 Dec 2012, 04:11
by jgribble
Will the fix be the same for all Joomlart templates? I currently am using several different ones. Installed the component and plugin on my test site, which uses Ja Business, Joomla 2.5. No icon displayed no matter what I tried. I have net yet messed with copying files to library folders per your tutorial. Is that always necessary?

Re: No PDF Icon - JA Template

Posted: 04 Dec 2012, 16:35
by hamss
jgribble wrote:Will the fix be the same for all Joomlart templates?
I am using JA Droid too, and there was the same issue. I think this is applyable for every JA Template, because they all are based on the jat3 System. And these files need to be customized.
Bu be informed, the customization is gone after a template update, or new installation.