Access to ContentHelperRoute::getArticleRoute in a custom template

Phoca PDF - creating PDF documents in Joomla! CMS
Davy
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 21 Sep 2016, 00:06

Access to ContentHelperRoute::getArticleRoute in a custom template

Post by Davy »

Hello,

I am using a custom template with Joomla (made by templaza), and after having patched it to include the pdf icon, the article pages were blank.

After some investigations I found a bug: ContentHelperRoute::getArticleRoute wasn't accessible in phocapdf.php. Is it thus possible in the next versions to add these two lines just before the call of the function (line 83):

Code: Select all

if (!class_exists('ContentHelperRoute'))
        require_once (JPATH_SITE . '/components/com_content/helpers/route.php');
Regards,
Davy
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Access to ContentHelperRoute::getArticleRoute in a custom template

Post by Jan »

Hi, thank you very much for the info, I will take a look at it for the next version.

Which phocapdf.php you mean, the one in frontend of component?

Thank you, Jan
If you find Phoca extensions useful, please support the project
Davy
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 21 Sep 2016, 00:06

Re: Access to ContentHelperRoute::getArticleRoute in a custom template

Post by Davy »

Here is the path of the file: administrator/components/com_phocapdf/helpers/phocapdf.php

Thank you for your great work.

Regards,
Davy
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Access to ContentHelperRoute::getArticleRoute in a custom template

Post by Jan »

Thank you, Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Access to ContentHelperRoute::getArticleRoute in a custom template

Post by Jan »

If you find Phoca extensions useful, please support the project
Post Reply