Article en PDF

More
8 years 5 months ago #58562 by AlainR
Replied by AlainR on topic Article en PDF
:(

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago - 8 years 5 months ago #58566 by ggppdk
Replied by ggppdk on topic Article en PDF
Hello

$params does not exist inside the flexicontent template files,
(if you enable Joomla error reporting paramter inside Joomla Global configuration), then you will get a warning that it does not exist
instead use: $this->params

so it should look as written above with this change
Code:
<?php $phocaPDF = false; if (JPluginHelper::isEnabled('phocapdf', 'content')) { include_once(JPATH_ADMINISTRATOR.'/components/com_phocapdf/helpers/phocapdf.php'); $phocaPDF = PhocaPDFHelper::getPhocaPDFContentIcon($this->item, $this->params); } ?> <?php echo $phocaPDF; ?>


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 8 years 5 months ago by ggppdk.
The following user(s) said Thank You: AlainR

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #58579 by ggppdk
Replied by ggppdk on topic Article en PDF
Hello

please see my above post and test

also, i have installed the component and content / system plugins,
- will test the code needed for flexicontent templates
and if it works, then will make a new FAQ article for this,


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago - 7 years 7 months ago #63909 by charlynancy
Replied by charlynancy on topic Article en PDF
Hi Georgios,
i'm trying to implement this function;
But the code to add in the template changed.
it is now :
Code:
<?php $phocaPDF = false; if (JPluginHelper::isEnabled('phocapdf', 'content')) { include_once(JPATH_ADMINISTRATOR.'/components/com_phocapdf/helpers/phocapdf.php'); $phocaPDF = PhocaPDFHelper::getPhocaPDFContentIcon($displayData['item'], $displayData['params']); } ?>
That produce the same error : "0 Call to a member function get() on null"
Could you look at the code above and help me to fix that.
So i could test this new function and write a new faq article about that.
Here is the help page on Phoca site
Here is the help page on Phoca site
Last edit: 7 years 7 months ago by charlynancy.

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago - 7 years 7 months ago #63910 by ggppdk
Replied by ggppdk on topic Article en PDF
Hello

that is expected, because you passed variable that do not exist, replace line:

try replacing line:
Code:
$phocaPDF = PhocaPDFHelper::getPhocaPDFContentIcon($displayData['item'], $displayData['params']);

with:
Code:
$phocaPDF = PhocaPDFHelper::getPhocaPDFContentIcon($item, $this->params);


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 7 years 7 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #63914 by charlynancy
Replied by charlynancy on topic Article en PDF
Hi Georgios,
Thank you for your code, it is fixing the error (variable that do not exist).
But the PDF function does not operate.
I tested it with com_content : that give the same problem.
I will try other third component or create an php function to generate PDF.

If you have an advice to obtain this function (generating PDF page in Flexicontent) it would certainly help me for this task.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.290 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline