Page 1 of 2

Displaying content plugin outside content articles

Posted: 11 Jan 2012, 14:45
by vikont72
Following this article https://www.phoca.cz/documents/16-joomla ... t-articles

did the following:

1. Image

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"; :x
}
echo '</div>';

3. <Image

Why not load category phocadownload?

Re: Displaying content plugin outside content articles

Posted: 11 Jan 2012, 21:48
by Jan
Hmm, is the Phoca Download Plugin enabled and correctly installed?

Re: Displaying content plugin outside content articles

Posted: 11 Jan 2012, 22:33
by vikont72
Jan wrote:Hmm, is the Phoca Download Plugin enabled and correctly installed?
Image

Image

Image

Everything works. Thank you. You have a golden head. But I need to tie. Watch here https://www.phoca.cz/documents/16-joomla ... t-articles



Image

Re: Displaying content plugin outside content articles

Posted: 11 Jan 2012, 22:45
by Jan
:-)
Great to hear it, it works :-)

Re: Displaying content plugin outside content articles

Posted: 11 Jan 2012, 22:59
by vikont72
Jan.

What can I do about it. I can not insert into Phoca Download phocagallery:
Image

(said my mother as a child - teach English. I did not listen...)

Re: Displaying content plugin outside content articles

Posted: 16 Jan 2012, 18:16
by Jan
And did you check if the plugin is enabled and published?

Re: Displaying content plugin outside content articles

Posted: 16 Jan 2012, 18:36
by vikont72
Jan wrote:And did you check if the plugin is enabled and published?

Good evening, Jan!
Image

Re: Displaying content plugin outside content articles

Posted: 16 Jan 2012, 20:07
by Jan
Hi, see no problem, changed line 38:

Code: Select all

echo JHTML::_('content.prepare', $this->category->description).'</div>'. "\n";
	//echo $this->category->description.'</div>'. "\n";
in components\com_phocagallery\views\category\tmpl\default.php

and works ok, see image:
Image

Jan

Re: Displaying content plugin outside content articles

Posted: 16 Jan 2012, 20:54
by vikont72
Thanks for your help.
Here are the results:
Image

How do I remove it: {phocadownload view=category|id=1|target=s}

Image

Re: Displaying content plugin outside content articles

Posted: 16 Jan 2012, 21:06
by Jan
I am sorry, but I don't know Azbuka anymore :-(