Put description category below images

Phoca Gallery - image gallery extension
melanie0662
Phoca Member
Phoca Member
Posts: 12
Joined: 09 Nov 2011, 19:54

Re: Put description category below images

Post by melanie0662 »

Hi ,
I have found my answer in an other forum and i would post it , maybe can help other people.
My first question was : i can i change de location of the description in the category. for that like jan say before you have to customize the default.php file. and then you have to find this part :

Code php :
// 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>';



and move it at the end of the file just after :
code php :
echo '<div>&nbsp;</div>';
// Phoca Gallery Width


it will look like that
echo '<div>&nbsp;</div>';
// Phoca Gallery Width

// 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>';


I'm not sure my post is well writing , if someone want to created one more easy to read.
bye and thanks for all your help
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Put description category below images

Post by Jan »

Hi, thank you for this guide.

Jan
If you find Phoca extensions useful, please support the project
Post Reply