Displaying content plugin outside content articles
Posted: 11 Jan 2012, 14:45
Following this article https://www.phoca.cz/documents/16-joomla ... t-articles
did the following:
1.
2. in the file: default.php (Z:/home/Joomla/www/components/com_phocagallery/views/category/tmpl/default.php)
echo $this->category->description.
replaced by:
echo JHTML::_('content.prepare', $this->category->description);
<?php defined('_JEXEC') or die('Restricted access'); ?>
<!-- <div><a>www.phoca.cz - Begin Category -->
<?php
// Heading
$heading = '';
if ($this->params->get( 'page_title' ) != '') {
$heading .= $this->params->get( 'page_title' );
}
// Category Name Title
if ( $this->tmpl['displaycatnametitle'] == 1) {
if ($this->category->title != '') {
if ($heading != '') {
$heading .= ' - ';
}
$heading .= $this->category->title;
}
}
// Pagetitle
if ($this->tmpl['showpagetitle'] != 0) {
if ( $heading != '') {
echo '<div class="componentheading'.$this->params->get( 'pageclass_sfx' ).'">'.$heading.'</div>'. "\n";
}
}
// Image, description
echo '<div class="contentpane'.$this->params->get( 'pageclass_sfx' ).'">';
if ( @$this->tmpl['image'] || @$this->category->description ) {
echo '<div class="contentdescription'.$this->params->get( 'pageclass_sfx' ).'">';
if ( isset($this->tmpl['image']) ) {
echo $this->tmpl['image'];
}
echo JHTML::_('content.prepare', $this->category->description);'</div>'. "\n";
}
echo '</div>';
3. <
Why not load category phocadownload?
did the following:
1.

2. in the file: default.php (Z:/home/Joomla/www/components/com_phocagallery/views/category/tmpl/default.php)
echo $this->category->description.
replaced by:
echo JHTML::_('content.prepare', $this->category->description);
<?php defined('_JEXEC') or die('Restricted access'); ?>
<!-- <div><a>www.phoca.cz - Begin Category -->
<?php
// Heading
$heading = '';
if ($this->params->get( 'page_title' ) != '') {
$heading .= $this->params->get( 'page_title' );
}
// Category Name Title
if ( $this->tmpl['displaycatnametitle'] == 1) {
if ($this->category->title != '') {
if ($heading != '') {
$heading .= ' - ';
}
$heading .= $this->category->title;
}
}
// Pagetitle
if ($this->tmpl['showpagetitle'] != 0) {
if ( $heading != '') {
echo '<div class="componentheading'.$this->params->get( 'pageclass_sfx' ).'">'.$heading.'</div>'. "\n";
}
}
// Image, description
echo '<div class="contentpane'.$this->params->get( 'pageclass_sfx' ).'">';
if ( @$this->tmpl['image'] || @$this->category->description ) {
echo '<div class="contentdescription'.$this->params->get( 'pageclass_sfx' ).'">';
if ( isset($this->tmpl['image']) ) {
echo $this->tmpl['image'];
}
echo JHTML::_('content.prepare', $this->category->description);'</div>'. "\n";

}
echo '</div>';
3. <

Why not load category phocadownload?