I don't get it... Installed PhocaPDF straight to instruction from https://www.phoca.cz/documents/47-phoca ... joomla-3-3...
I tried to install with System Plugin an tried to code manually. I copied the code to overwrite directory but there doesn't seem to happen something.
I copied the code to mytemplate/html/com_content/article/default.php. This is the only file, where changes can be seen in frontend (Tested it with some text - simply inserted "Test" to li-element -> This "Test" will appear in frontend). When i insert the code from the instructions:
Code: Select all
$phocaPDF = false;
if (JPluginHelper::isEnabled('phocapdf', 'content')) {
include_once(JPATH_ADMINISTRATOR.'/components/com_phocapdf/helpers/phocapdf.php');
$phocaPDF = PhocaPDFHelper::getPhocaPDFContentIcon($displayData['item'], $displayData['params']);
}
Code: Select all
|| $phocaPDF
Code: Select all
<?php echo $phocaPDF; ?>
Code: Select all
$phocaPDF = PhocaPDFHelper::getPhocaPDFContentIcon($displayData['item'], $displayData['params']);
My Joomla: 3.8.10
My PhocaPDF Component: 3.0.5
My PhocaPDF Content: 3.0.5
My PHP: 7.2
What is wrong with me? (or my code... :) )