Hello.
Trying to embed youtube code in phoca category description, but it doesn't appears in a category view. Simple text description can be displayed, but youtube cann't. Text filters are switched off in global configuration parameters.
What can it be?
[SOLVED]How to display youtube in a category description?
-
- Phoca Enthusiast
- Posts: 65
- Joined: 29 Jan 2012, 14:43
- Contact:
[SOLVED]How to display youtube in a category description?
Last edited by borus on 12 Apr 2012, 09:56, edited 2 times in total.
-
- Phoca Member
- Posts: 10
- Joined: 21 Nov 2009, 21:07
-
- Phoca Enthusiast
- Posts: 65
- Joined: 29 Jan 2012, 14:43
- Contact:
Re: How to display youtube in a category description?
thank you, i don't know German and it's difficult to understand even with Chrome translator

-
- Phoca Member
- Posts: 10
- Joined: 21 Nov 2009, 21:07
Re: How to display youtube in a category description?
Hi
Sorry ... my english is also very bad
/components/com_phocagallery/views/category/tmpl/default.php
Change this code ....
... to this code
Now you can display Youtube videos with the phoca download plugin code
e.g.
I hope ... jan make a update of the JHTML::_ code in the next release
lg christian
Sorry ... my english is also very bad

ok ... in phoca gallery you can open this file (FTP)Jan wrote:Hallo, jetzt versehe ich, man muss die Beschreibung Code für Phoca Download modifizieren, so es Conten Plugins akzeptiert.
https://www.phoca.cz/documents/16-joomla ... t-articles
Jan
/components/com_phocagallery/views/category/tmpl/default.php
Change this code ....
Code: Select all
// Category Description
if (isset($this->category->description) && $this->category->description != '' ) {
echo '<div class="pg-category-view-desc'.$this->params->get( 'pageclass_sfx' ).'">';
echo $this->category->description.'</div>'. "\n";
}
Code: Select all
// Category Description
if (isset($this->category->description) && $this->category->description != '' ) {
echo '<div class="pg-category-view-desc'.$this->params->get( 'pageclass_sfx' ).'">';
echo JHTML::_('content.prepare', $this->category->description);
echo '</div>';
}
e.g.
Code: Select all
{phocadownload view=youtube|youtubewidth=500|youtubeheight=306|url=http://www.youtube.com/watch?v=xxxxxxxxxxx}

lg christian
- Jan
- Phoca Hero
- Posts: 48752
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How to display youtube in a category description?
Hi, thank you for the guide, will be added to next release.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 65
- Joined: 29 Jan 2012, 14:43
- Contact:
Re: How to display youtube in a category description?
Thank you, xonder.xonder wrote:Hi...
I did as you said. It doesn't work. Why?
Here is my code for PG category description:
Code: Select all
{phocadownload view=youtube|youtubewidth=560|youtubeheight=315|url=http://www.youtube.com/watch?v=WJ1ur7Ce5hU}
-
- Phoca Enthusiast
- Posts: 65
- Joined: 29 Jan 2012, 14:43
- Contact:
Re: How to display youtube in a category description?
I've found that in my template folder was unchanged copy of that default.php which was blocking all changes made in original file 

- Jan
- Phoca Hero
- Posts: 48752
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [SOLVED]How to display youtube in a category description
Will be set in 3.2.1
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 9
- Joined: 09 Aug 2011, 17:39
- Contact:
Re: [SOLVED]How to display youtube in a category description
Hello,
This sollution works also great with version 2.8.1. (Joomla 1.5). I used this method to combine the power of Phocagallery with the beauty of Joomlashines Imageshow. Exacmple: http://www.bestemmingonbekend.nl/index. ... porto-2012
/components/com_phocagallery/views/category/tmpl/default.php
Change this code ....
into
Regards,
Jeroen Kleiberg
http://www.bestemmingonbekend.nl
This sollution works also great with version 2.8.1. (Joomla 1.5). I used this method to combine the power of Phocagallery with the beauty of Joomlashines Imageshow. Exacmple: http://www.bestemmingonbekend.nl/index. ... porto-2012
/components/com_phocagallery/views/category/tmpl/default.php
Change this code ....
Code: Select all
// 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 $this->category->description.'</div>'. "\n";
}
echo '</div>';
Code: Select all
// Category Description
if (isset($this->category->description) && $this->category->description != '' ) {
echo '<div class="pg-category-view-desc'.$this->params->get( 'pageclass_sfx' ).'">';
echo JHTML::_('content.prepare', $this->category->description);
echo '</div>';
}
Jeroen Kleiberg
http://www.bestemmingonbekend.nl