Phoca PDF & Gantry NOT working

Phoca PDF - creating PDF documents in Joomla! CMS
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47883
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca PDF & Gantry NOT working

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
sandmanm
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 21 Nov 2014, 21:12

Re: Phoca PDF & Gantry NOT working

Post by sandmanm »

PART 2 ****

Edit Gantry Files.
../templates/gantry/html/base_override.php
Comment out the "if" statement on roughtly line 74.
/*==============================================================================

if (defines('GANTRY_OVERRIDES_PATH')){
$go output = "";

// add fallback rokoverride paths
$go_platform_versions = gantry_getAvailablePlatformVersions (GANTRY_OVERRIDE_PATH);
foreach ($go_platform_versions as $go_platform_version){
$go_search_paths[] = implode ('/', array (GANTRY_OVERRIDES_PATH, $go_platform_version, $go_current_template->params->get('override_set', '2.5'), $go_relative_template_override_path));
}
}

===============================================================================*/


index.php
$gantry->addLess('custom.less','custom.css',9);


custom.less
ul.actions .pdf-icon a:before{
font-family: FontAwesome;
content: "\f156";


Edit Phoca PDF Component core files.
../administrator/components/com_phocaPDF/helpers/phocapdf.php
Change line 108 - 110 with code bellow.


$output = '"<"li clas="pdf-icon"">"' . JHTML::_('link',JRoute::_($url), '"<"span class="icon-file"">" ' . 'PDF' . ' ', $attribs) . '"<"/li">"';
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47883
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca PDF & Gantry NOT working

Post by Jan »

Hi, thank you for the guide.

Jan
If you find Phoca extensions useful, please support the project
theant
Phoca Member
Phoca Member
Posts: 10
Joined: 18 Feb 2009, 13:02

Re: Phoca PDF & Gantry NOT working

Post by theant »

Please, can you help me with Gantry 5?
vAlini
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 19 Apr 2016, 19:28

Re: Phoca PDF & Gantry NOT working

Post by vAlini »

sandmanm wrote:PART 2 ****

$output = '"<"li clas="pdf-icon"">"' . JHTML::_('link',JRoute::_($url), '"<"span class="icon-file"">" ' . 'PDF' . ' ', $attribs) . '"<"/li">"';
Thank you. Work for me with a template based on Gantry4 ! Don't now why you put " everywhere

Code: Select all

$output = '<li class="pdf-icon">' . JHTML::_('link',JRoute::_($url), '<span class="icon-file"></span>' . 'PDF' . ' ', $attribs) . '</li>';
worket fine.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47883
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca PDF & Gantry NOT working

Post by Jan »

Hi, seems, the code was wrongly copy/pasted.

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