Joomla 1.7.3, Artisteer 3.1 and Phoca PDF icon

Phoca PDF - creating PDF documents in Joomla! CMS
Juergen
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 06 May 2012, 11:36

Joomla 1.7.3, Artisteer 3.1 and Phoca PDF icon

Post by Juergen »

Hello,

I have the same problems with Joomla 1.7.3 and an artisteer 3.1 template like several others here. The PDF icon doesn't show up. This issue is going to cost me a month of my life. I followed exactly the suggestions in: viewtopic.php?f=37&t=17383&start=0 , but ended up with another problem.

In fact, with the second and third php code recommended by SonRiab the PDF icon appeared expectedly and the other icons were moved to a second line (not three lines). Customizing JOOMLAROOT/administrator/components/com_phocapdf/helpers/phocapdf.php moved all three icons to one line. Very nice up to here, BUT: Now the text of the article (leading article on the standard page) completely disappeared. Only the title (without link) is displayed on the monitor. Even more amazing, when using the PDF function the whole aricle is printed completely.

I am pretty sure that I made everything right in Joomla.

Even more weired, if the article is linked to a menu and not marked as main article for the standard page, the text is displayed correctly and linked. Has somebody any idea to this?

A second issue: Is it possible to display the PDF icon only on selected articles or pages, for instance only on those articles appearing on the standard site?

Need urgent help

Jürgen
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Joomla 1.7.3, Artisteer 3.1 and Phoca PDF icon

Post by Jan »

Hi,

displaying PDF icon on specific pages: yes, you can set it in parameters of the plugin, which articles will e.g. not display it

design issues: really hard to give advice there, as I don't know the template, no the customization code, etc. :-( :-(

Jan
If you find Phoca extensions useful, please support the project
walter_54
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 18 May 2012, 10:30

Re: Joomla 1.7.3, Artisteer 3.1 and Phoca PDF icon

Post by walter_54 »

Hi Jürgen
you must to add the following routine in the file: from your root plugins/phocapdf/content/content.php

if (!$article->print && $article->showPdfIcon)
$params['metadata-header-icons'][] = $article->pdfIcon();
if (JPluginHelper::isEnabled('phocapdf', 'content')) {
include_once JPATH_ADMINISTRATOR .
'/components/com_phocapdf/helpers/phocapdf.php';
$icon = PhocaPDFHelper::getPhocaPDFContentIcon($this->item, $this->item->params);
$icon = str_replace('<li class="print-icon">', '', $icon);
$icon = str_replace('</li>', '', $icon);
$params['metadata-header-icons'][] = $icon;
}

in this way the icon will be visible
Walter
Post Reply