Phoca PDF & Gantry NOT working
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca PDF & Gantry NOT working
Ok
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 6
- Joined: 21 Nov 2014, 21:12
Re: Phoca PDF & Gantry NOT working
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">"';
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">"';
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca PDF & Gantry NOT working
Hi, thank you for the guide.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 16
- Joined: 18 Feb 2009, 13:02
Re: Phoca PDF & Gantry NOT working
Please, can you help me with Gantry 5?
-
- Phoca Newbie
- Posts: 4
- Joined: 19 Apr 2016, 19:28
Re: Phoca PDF & Gantry NOT working
Thank you. Work for me with a template based on Gantry4 ! Don't now why you put " everywheresandmanm wrote:PART 2 ****
$output = '"<"li clas="pdf-icon"">"' . JHTML::_('link',JRoute::_($url), '"<"span class="icon-file"">" ' . 'PDF' . ' ', $attribs) . '"<"/li">"';
Code: Select all
$output = '<li class="pdf-icon">' . JHTML::_('link',JRoute::_($url), '<span class="icon-file"></span>' . 'PDF' . ' ', $attribs) . '</li>';
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca PDF & Gantry NOT working
Hi, seems, the code was wrongly copy/pasted.
Jan
Jan
If you find Phoca extensions useful, please support the project