Page 1 of 2

Category Description placement

Posted: 28 Mar 2009, 18:48
by mathialoc
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...

Re: Category Description placement

Posted: 30 Mar 2009, 18:52
by Jan
Hi, I am sorry but I don't understand, how to paste all the description below the thumbnail ?

Re: Category Description placement

Posted: 13 Apr 2009, 23:15
by kozmogonzo
Yes, that's what he meant, and that's my question as well, how to paste all the description below the thumbnail? Thanks ;)

Re: Category Description placement

Posted: 16 Apr 2009, 01:44
by kozmogonzo
In other words, how to set phoca to display category description below the thumbnails, and not above as it is by default.

Re: Category Description placement

Posted: 16 Apr 2009, 14:03
by Jan
Hi, this needs to be customized in the code:

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

Re: Category Description placement

Posted: 16 Apr 2009, 19:51
by kozmogonzo
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 :)

Re: Category Description placement

Posted: 25 Apr 2009, 18:28
by zelula
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.

Re: Category Description placement

Posted: 27 Apr 2009, 09:21
by caro84g
[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

Re: Category Description placement

Posted: 08 May 2009, 21:30
by Jan
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

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>&nbsp;';
		
		if ($this->categories[$i]->numlinks > 0) {echo '<span class="small">('.$this->categories[$i]->numlinks.')</span>';}
		
		echo '</td></tr>
for above

Re: Category Description placement

Posted: 22 Sep 2011, 02:08
by larenespitler
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:

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>&nbsp;';
if ($this->categories[$i]->numlinks > 0) {echo '<span class="small">('.$this->categories[$i]->numlinks.')</span>';}
echo '</td>';
echo '</tr>';
And made it look like this:

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>&nbsp;';
echo '</a[b]><br />[/b]';
echo '<a href="'.$this->categories[$i]->link.'" class="category'.$this->params->get( 'pageclass_sfx' ).'">'.$this->categories[$i]->title.'</a>&nbsp;';
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>';