Themler + Phoca PDF

webworker
14 Posts
webworker posted this 08 July 2016

Is a Themler Template working with Phoca PDF?

How or where i can insert the following lines http://www.phoca.cz/documents/47-phoca-pdf-component/812-phoca-pdf-installation-and-usage-joomla-3-3

Many thx
Nadine

Is a Themler Template working with Phoca PDF? How or where i can insert the following lines http://www.phoca.cz/documents/47-phoca-pdf-component/812-phoca-pdf-installation-and-usage-joomla-3-3 Many thx Nadine
Vote to pay developers attention to this features or issue.
8 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 11 July 2016

Hi,

I'll ask our developers about the place where this code should be inserted.
We'll let you know when we receive any news from them.

Thank you,
Olivia

Hi, I'll ask our developers about the place where this code should be inserted. We'll let you know when we receive any news from them. Thank you, Olivia
webworker
14 Posts
webworker posted this 11 July 2016

Many thx pls asap.

Nadine

Many thx pls asap. Nadine
Support Team
Support Team posted this 11 July 2016

We'll let you know as soon as there is any respond from our developers.

Sincerely,
Hella

We'll let you know as soon as there is any respond from our developers. Sincerely, Hella
Support Team
Support Team posted this 13 July 2016

Hi,

Please try the following solution:
1. open <theme_name>/html/com_content/article/default.php file
2. find the line:
Designer::load("Designer_Content");
3. add the following code right after the line above:
$phocaPDF = false;
if (JPluginHelper::isEnabled('phocapdf', 'content')) {
include_once(JPATH_ADMINISTRATOR . '/components/com_phocapdf/helpers/phocapdf.php');
$GLOBALS['phocaPDF'] = PhocaPDFHelper::getPhocaPDFContentIcon($this->item, $this->item->params);
}

4. then go to Themler >> Post Template and add CMS Code control to the place where you want the icon to appear:
<?php
if (isset($GLOBALS['phocaPDF']))
echo $GLOBALS['phocaPDF'];
?>

insert-cms-code.png

CMS Code control is available under the Insert tab >> More.

Thank you,
Olivia

Hi, Please try the following solution: 1. open `<theme_name>/html/com_content/article/default.php` file 2. find the line: `Designer::load("Designer_Content");` 3. add the following code right after the line above: `$phocaPDF = false; if (JPluginHelper::isEnabled('phocapdf', 'content')) { include_once(JPATH_ADMINISTRATOR . '/components/com_phocapdf/helpers/phocapdf.php'); $GLOBALS['phocaPDF'] = PhocaPDFHelper::getPhocaPDFContentIcon($this->item, $this->item->params); }` 4. then go to Themler >> Post Template and add CMS Code control to the place where you want the icon to appear: `<?php if (isset($GLOBALS['phocaPDF'])) echo $GLOBALS['phocaPDF']; ?>` !insert-cms-code.png! **CMS Code** control is available under the Insert tab >> More. Thank you, Olivia
webworker
14 Posts
webworker posted this 14 July 2016

Hi.

Thank you very much its working fine:)

Nadine

Hi. Thank you very much its working fine:) Nadine
Support Team
Support Team posted this 15 July 2016

You are welcome, feel free to contact us in any other occasion.

Sincerely,
Hella

You are welcome, feel free to contact us in any other occasion. Sincerely, Hella
themler44
2 Posts
themler44 posted this 08 June 2018

Hallo, vielen Dank für diesen Tipp!

Gibt es (künftig) eine Möglichkeit, diesen Code dauerhaft in Themler zu involvieren, so das man nicht immer die /article/default.php bearbeiten muß?

mfg

Hello, thank you for this tip!

Is there a way to involve this code permanently in Themler, so you do not always have to edit /article/default.php?

Kind regards

Hallo, vielen Dank für diesen Tipp! Gibt es (künftig) eine Möglichkeit, diesen Code dauerhaft in Themler zu involvieren, so das man nicht immer die /article/default.php bearbeiten muß? mfg ========================================================================== Hello, thank you for this tip! Is there a way to involve this code permanently in Themler, so you do not always have to edit /article/default.php? Kind regards
Support Team
Support Team posted this 08 June 2018

Hi,

We do not have plans to include this code in the theme as not all our users need Phoca PDF plug-in. Please feel free to use the provided workaround. Unfortunately you will need to edit the exported files each time you save the theme.

Sincerely,
Hella

Hi, We do not have plans to include this code in the theme as not all our users need Phoca PDF plug-in. Please feel free to use the provided workaround. Unfortunately you will need to edit the exported files each time you save the theme. Sincerely, Hella
You must log in or register to leave comments