Category Description placement
-
mathialoc
- Phoca Newbie

- Posts: 2
- Joined: 25 Feb 2009, 16:04
Category Description placement
I am trying to figure out how to display the category description Below the thumbnail image.
I find having it th the right is ok for a single column list of categories but wastes lots of space in a horizontal listing of categories.
I like this component and don't wish to hack it up trying to achieve this...
Others must have a need for this...
I find having it th the right is ok for a single column list of categories but wastes lots of space in a horizontal listing of categories.
I like this component and don't wish to hack it up trying to achieve this...
Others must have a need for this...
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category Description placement
Hi, I am sorry but I don't understand, how to paste all the description below the thumbnail ?
If you find Phoca extensions useful, please support the project
-
kozmogonzo
- Phoca Newbie

- Posts: 3
- Joined: 13 Apr 2009, 23:01
Re: Category Description placement
Yes, that's what he meant, and that's my question as well, how to paste all the description below the thumbnail? Thanks 
-
kozmogonzo
- Phoca Newbie

- Posts: 3
- Joined: 13 Apr 2009, 23:01
Re: Category Description placement
In other words, how to set phoca to display category description below the thumbnails, and not above as it is by default.
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category Description placement
Hi, this needs to be customized in the code:
components\com_phocagallery\views\category\tmpl\default.php
components\com_phocagallery\views\category\tmpl\default.php
Code: Select all
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>';
} If you find Phoca extensions useful, please support the project
-
kozmogonzo
- Phoca Newbie

- Posts: 3
- Joined: 13 Apr 2009, 23:01
Re: Category Description placement
Thanks for your help
Still, i tried to set this php code work it out for me, but i haven't made it (i'm not very familiar with php). Could you please instruct me a bit further, e.g. tell me what to change in the code in order to put the description below the thumbs?
Thanks again
Still, i tried to set this php code work it out for me, but i haven't made it (i'm not very familiar with php). Could you please instruct me a bit further, e.g. tell me what to change in the code in order to put the description below the thumbs?
Thanks again
-
zelula
- Phoca Newbie

- Posts: 3
- Joined: 12 Oct 2008, 16:24
Re: Category Description placement
I believe what kozmogonzo is trying to say is the following issue that I'm looking for an answer as well:
By default, when viewing the Category List of your foto gallery, the images show up on the left and the category names just beside it (at the right side). Indeed that is very helpful when having only a few categories, but the main problem comes when you have much more categories (more than 30). So my 2 questions are:
1) How can I place the category name below or above the thumbnail image in the Category List?
2) I would like to donate in order to get rid of the footer logo. Is there a minimum of donation to remove the footer? I can't see anywhere on this website a donation option.
Thanks in advance!
Z.
By default, when viewing the Category List of your foto gallery, the images show up on the left and the category names just beside it (at the right side). Indeed that is very helpful when having only a few categories, but the main problem comes when you have much more categories (more than 30). So my 2 questions are:
1) How can I place the category name below or above the thumbnail image in the Category List?
2) I would like to donate in order to get rid of the footer logo. Is there a minimum of donation to remove the footer? I can't see anywhere on this website a donation option.
Thanks in advance!
Z.
- caro84g
- Phoca Hero

- Posts: 1369
- Joined: 11 Feb 2008, 17:52
- Location: Holland
- Contact:
Re: Category Description placement
[quote="zelula"]2) I would like to donate in order to get rid of the footer logo. Is there a minimum of donation to remove the footer? I can't see anywhere on this website a donation option.
[quote]
see: https://www.phoca.cz/support
By the way on every product page (like https://www.phoca.cz/phocagallery ) there is a 'make a donation' button.
Regards, Carolien
[quote]
see: https://www.phoca.cz/support
By the way on every product page (like https://www.phoca.cz/phocagallery ) there is a 'make a donation' button.
Regards, Carolien
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Backup before you do any major change to your website (and test first)
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Category Description placement
Hi,
1) How can I place the category name below or above the thumbnail image in the Category List?
This needs to be customized in the categories view template:
see:
components\com_phocagallery\views\categories\tmpl\default.php
e.g. line 66
you can paste there <br /> to set it below
or you will do new row in the table for above
1) How can I place the category name below or above the thumbnail image in the Category List?
This needs to be customized in the categories view template:
see:
components\com_phocagallery\views\categories\tmpl\default.php
e.g. line 66
you can paste there <br /> to set it below
or you will do new row in the table
Code: Select all
<tr><td></td><td><a href="'.$this->categories[$i]->link.'" class="category'.$this->params->get( 'pageclass_sfx' ).'">'.$this->categories[$i]->title.'</a> ';
if ($this->categories[$i]->numlinks > 0) {echo '<span class="small">('.$this->categories[$i]->numlinks.')</span>';}
echo '</td></tr>If you find Phoca extensions useful, please support the project
-
larenespitler
- Phoca Newbie

- Posts: 6
- Joined: 22 Sep 2011, 01:53
Re: Category Description placement
In order to put the descriptions below the images and add an extra line after the description, I fixed it by making the following changes to:
components\com_phocagallery\views\categories\tmpl\default.php
Line 95, I changed the following code:
And made it look like this:
components\com_phocagallery\views\categories\tmpl\default.php
Line 95, I changed the following code:
Code: Select all
echo '</a></td>';
echo '<td><a href="'.$this->categories[$i]->link.'" class="category'.$this->params->get( 'pageclass_sfx' ).'">'.$this->categories[$i]->title.'</a> ';
if ($this->categories[$i]->numlinks > 0) {echo '<span class="small">('.$this->categories[$i]->numlinks.')</span>';}
echo '</td>';
echo '</tr>';Code: Select all
[b]//[/b]echo '</a></td>';
[b]//[/b]echo '<td><a href="'.$this->categories[$i]->link.'" class="category'.$this->params->get( 'pageclass_sfx' ).'">'.$this->categories[$i]->title.'</a> ';
echo '</a[b]><br />[/b]';
echo '<a href="'.$this->categories[$i]->link.'" class="category'.$this->params->get( 'pageclass_sfx' ).'">'.$this->categories[$i]->title.'</a> ';
if ($this->categories[$i]->numlinks > 0) {echo '<span class="small">('.$this->categories[$i]->numlinks.')</span>';}
//echo '</td>';
echo '[b]<br /><br />[/b]</td>';
echo '</tr>';