No pdf icon Joomla 3.3 JA Purity II template
Posted: 27 Dec 2014, 15:12
I have upgraded my site from Joomla 2.5 to the latest 3.3 without changing JA purity II template. Also upgraded PhocaPdf version. I cannot get the pdf icon to appear in the articles. I have tried to modify the icon.php file as explained in the documentation but this did not help (installing and activating the system plugin did not help).
At the time the site was on Joomla 2.5 I had to copy the default.php file from
administrator/components/com_phocapdf/files/com_content/views/article/tmpl/
and replace it with the file in
public_html/templates/ja_purity_ii/html/com_content/article/.
If I still use the same default.php file (from the Phocapdf version for Joomla 2.5) and place it in public_html/templates/ja_purity_ii/html/com_content/article/ I get a PDF writing near two printer icons and one email icon on top of each article. Clicking the PDF writing produces a PDF document, so what I actually need is having the PDF icon in place.
I have no knowledge in coding. This is the relevant phrase from the default.php file:
<?php
//PHOCAEDIT
defined('JPATH_BASE') or die;
$canEdit = $displayData['params']->get('access-edit');
$phocaPDF = false;
if (JPluginHelper::isEnabled('phocapdf', 'content')) {
include_once(JPATH_ADMINISTRATOR.'/components/com_phocapdf/helpers/phocapdf.php');
$phocaPDF = PhocaPDFHelper::getPhocaPDFContentIcon($displayData['item'], $displayData['params']);
}
?>
<?php if ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon') || $phocaPDF) : ?>
<ul class="actions">
<?php echo $phocaPDF; //END PHOCAEDIT ?>
<?php if (!$this->print) : ?>
<?php if ($params->get('show_print_icon')) : ?>
<li class="print-icon">
<?php echo JHtml::_('icon.print_popup', $this->item, $params); ?>
</li>
<?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; ?>
<?php else : ?>
<li>
<?php echo JHtml::_('icon.print_screen', $this->item, $params); ?>
</li>
<?php endif; ?>
</ul>
<?php endif; ?>
<?php if (!$params->get('show_intro')) :
echo $this->item->event->afterDisplayTitle;
endif; ?>
Can someone help in the changes needed to be done in this file in order to get the pdf icon to show?
Regards,
M.E.
At the time the site was on Joomla 2.5 I had to copy the default.php file from
administrator/components/com_phocapdf/files/com_content/views/article/tmpl/
and replace it with the file in
public_html/templates/ja_purity_ii/html/com_content/article/.
If I still use the same default.php file (from the Phocapdf version for Joomla 2.5) and place it in public_html/templates/ja_purity_ii/html/com_content/article/ I get a PDF writing near two printer icons and one email icon on top of each article. Clicking the PDF writing produces a PDF document, so what I actually need is having the PDF icon in place.
I have no knowledge in coding. This is the relevant phrase from the default.php file:
<?php
//PHOCAEDIT
defined('JPATH_BASE') or die;
$canEdit = $displayData['params']->get('access-edit');
$phocaPDF = false;
if (JPluginHelper::isEnabled('phocapdf', 'content')) {
include_once(JPATH_ADMINISTRATOR.'/components/com_phocapdf/helpers/phocapdf.php');
$phocaPDF = PhocaPDFHelper::getPhocaPDFContentIcon($displayData['item'], $displayData['params']);
}
?>
<?php if ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon') || $phocaPDF) : ?>
<ul class="actions">
<?php echo $phocaPDF; //END PHOCAEDIT ?>
<?php if (!$this->print) : ?>
<?php if ($params->get('show_print_icon')) : ?>
<li class="print-icon">
<?php echo JHtml::_('icon.print_popup', $this->item, $params); ?>
</li>
<?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; ?>
<?php else : ?>
<li>
<?php echo JHtml::_('icon.print_screen', $this->item, $params); ?>
</li>
<?php endif; ?>
</ul>
<?php endif; ?>
<?php if (!$params->get('show_intro')) :
echo $this->item->event->afterDisplayTitle;
endif; ?>
Can someone help in the changes needed to be done in this file in order to get the pdf icon to show?
Regards,
M.E.