Page 2 of 2

Re: Phoca PDF & Gantry NOT working

Posted: 02 Apr 2015, 23:03
by Jan
Ok

Re: Phoca PDF & Gantry NOT working

Posted: 02 Jun 2015, 22:32
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">"';

Re: Phoca PDF & Gantry NOT working

Posted: 22 Aug 2015, 00:56
by Jan
Hi, thank you for the guide.

Jan

Re: Phoca PDF & Gantry NOT working

Posted: 24 Nov 2015, 10:27
by theant
Please, can you help me with Gantry 5?

Re: Phoca PDF & Gantry NOT working

Posted: 19 Apr 2016, 19:33
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.

Re: Phoca PDF & Gantry NOT working

Posted: 25 Apr 2016, 01:03
by Jan
Hi, seems, the code was wrongly copy/pasted.

Jan