Phoca PDF now showing content

I installed the plug-in into a Joomla 3.5.1 site. The plug-in wouldn’t run at all at first till I found a fix for that. I will try to list that one as well later.

The header and header line would print but nothing else. I found the following article that fixed this for me.

http://www.phoca.cz/forum/viewtopic.php?f=37&t=12662

It was this code I needed:

      $document = &JFactory::getDocument();
$document->setHeader($this->getHeaderText($item, $params));

$item->article_text = $item->introtext;
$item->article_text .= $item->fulltext;

echo $item->text;
$document->setArticleText($item->article_text);

I hope this helps someone else out there…

 

1 Comments

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>