Displaying content plugin outside content articles

Phoca Gallery - image gallery extension
vikont72
Phoca Member
Phoca Member
Posts: 28
Joined: 03 Jan 2011, 02:11

Displaying content plugin outside content articles

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Displaying content plugin outside content articles

Post by Jan »

Hmm, is the Phoca Download Plugin enabled and correctly installed?
If you find Phoca extensions useful, please support the project
vikont72
Phoca Member
Phoca Member
Posts: 28
Joined: 03 Jan 2011, 02:11

Re: Displaying content plugin outside content articles

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Displaying content plugin outside content articles

Post by Jan »

:-)
Great to hear it, it works :-)
If you find Phoca extensions useful, please support the project
vikont72
Phoca Member
Phoca Member
Posts: 28
Joined: 03 Jan 2011, 02:11

Re: Displaying content plugin outside content articles

Post 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...)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Displaying content plugin outside content articles

Post by Jan »

And did you check if the plugin is enabled and published?
If you find Phoca extensions useful, please support the project
vikont72
Phoca Member
Phoca Member
Posts: 28
Joined: 03 Jan 2011, 02:11

Re: Displaying content plugin outside content articles

Post by vikont72 »

Jan wrote:And did you check if the plugin is enabled and published?

Good evening, Jan!
Image
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Displaying content plugin outside content articles

Post 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
If you find Phoca extensions useful, please support the project
vikont72
Phoca Member
Phoca Member
Posts: 28
Joined: 03 Jan 2011, 02:11

Re: Displaying content plugin outside content articles

Post by vikont72 »

Thanks for your help.
Here are the results:
Image

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

Image
Last edited by vikont72 on 16 Jan 2012, 22:35, edited 2 times in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Displaying content plugin outside content articles

Post by Jan »

I am sorry, but I don't know Azbuka anymore :-(
If you find Phoca extensions useful, please support the project
Post Reply