Page 1 of 1

Access to ContentHelperRoute::getArticleRoute in a custom template

Posted: 21 Sep 2016, 00:12
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

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

Posted: 21 Sep 2016, 00:27
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

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

Posted: 21 Sep 2016, 11:34
by Davy
Here is the path of the file: administrator/components/com_phocapdf/helpers/phocapdf.php

Thank you for your great work.

Regards,
Davy

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

Posted: 22 Sep 2016, 13:37
by Jan
Thank you, Jan

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

Posted: 03 Oct 2016, 13:54
by Jan