Pochapdf 2.5

Phoca PDF - creating PDF documents in Joomla! CMS
rfj
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 26 Apr 2015, 14:02

Pochapdf 2.5

Post by rfj »

Hi Jan

Have used your pochapdf in a 1.5 version with much pleasure :-)

I have made a site in Joomla 2.5, and your pdf creator ignores the 'Display Plug-In Code' function !

It is always displayed !

Hope you can help.

Best regards
Rene
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Pochapdf 2.5

Post by Jan »

Hi, which version of Phoca PDF component and which version of the Phoca PDF content plugin you are running?

Jan
If you find Phoca extensions useful, please support the project
rfj
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 26 Apr 2015, 14:02

Re: Pochapdf 2.5

Post by rfj »

Hi

Pocha PDF ver. 2.0.7
The plugin I can't find version !

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

Re: Pochapdf 2.5

Post by Jan »

See the extension manager, there you should get the info about the plugin, or see the ZIP file, there is set the version.

Jan
If you find Phoca extensions useful, please support the project
rfj
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 26 Apr 2015, 14:02

Re: Pochapdf 2.5

Post by rfj »

Hi

PDF: 2.0.7
Content: 2.0.6
System plugin: 3.0.0

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

Re: Pochapdf 2.5

Post by Jan »

Hi, the system plugin does not work for Joomla! 2.5, it is a Joomla! 3 extension.
But this is not related to the problem. Testing now and when I disable the conent plugin displaying, it will be normally ignored :idea: :idea:

Jan
If you find Phoca extensions useful, please support the project
rfj
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 26 Apr 2015, 14:02

Re: Pochapdf 2.5

Post by rfj »

Hi Jan

Can I find a System plugin for 2.5 ?
Do you think that the displaying of the content code can be solved ?
I know that no URL's can be listed, but can I send you some code to help you find the problem ?

Best regards
Rene
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Pochapdf 2.5

Post by Jan »

Hi, there is no system plugin for 2.5, the icon should be set by this method:

https://www.phoca.cz/documents/47-phoca- ... -and-usage

But the system plugin only cares about the icon, so this is not related to this topic, if you see the pdf icon, the system plugin is not more needed.


Jan
If you find Phoca extensions useful, please support the project
rfj
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 26 Apr 2015, 14:02

Re: Pochapdf 2.5

Post by rfj »

Hi Jan

The changes you describe does not work in 2.5.
Here the code I've tried to use:

<?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 ($params->get(''access-edit'') || $params->get(''show_print_icon'') || $params->get(''show_email_icon'') || $phocaPDF) : ?>
<ul class="actions">
<?php echo $phocaPDF; ?>
<?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; ?>
rfj
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 26 Apr 2015, 14:02

Re: Pochapdf 2.5

Post by rfj »

Hi Jan

I use 'Ninja Access', it might have some affect to your code ?

{njaccess 0}









Users Manual




































{/njaccess}
{njaccess 2}









Users Manual








Spareparts







Branding








Drawings








Wiring Diagram


{/njaccess}
Post Reply