Page 1 of 1

link shows all subcategories

Posted: 21 Feb 2011, 12:42
by miheli
Hi there,

i have a "main-categorie" named 2010 and all subcategories in there. i had to change the view (categorie, picture and description (floating) a little bit. This menutype was "show all categories".
now i need the 2011 also. Its not a problem, to get all the subcategories from categorie 2011, but how can i change the view of the subcategorie list, that it looks like now?
so far i only got picture, title and (number of pix)



thanks for answers:)

Re: link shows all subcategories

Posted: 23 Feb 2011, 22:31
by Jan
Hi, you can change the template here:

components/com_phocagallery/views/categories/tmpl/default.php
components/com_phocagallery/views/category/tmpl/default.php

Jan

Re: link shows all subcategories

Posted: 01 Mar 2011, 12:44
by miheli
Thanks for your answer, i will try it.

Re: link shows all subcategories

Posted: 01 Mar 2011, 18:03
by miheli
Im very sorry, but i dont get it.

First I had only 1 Menulink called 2010 and there i had the Linktype Phoca Gallery Layout Categorie List. Here I edited the file "categories/default.php" to get the picture float right.

Now what i need is to list only Subcategories of a "main-categorie", because i have a new Menulink (Phoca Gallery layout) and i dont want to have the same Content here :).
What was possible for me so far without going to the *.php pages was to list them all with picture, Title and Numbers of Pix. Now i would like to have the same look like in "categories/default.php" and i have no clue, where i have to make this changes.

For me its like the part where i can choose the Layout (this case LAYOUT 4 (with columns) (easy categories, images and description)) for subcategories.

Re: link shows all subcategories

Posted: 05 Mar 2011, 15:39
by Jan
Hi, depends on which view you mean.

Categories View?
Category View?
Categories View in Category View?
https://www.phoca.cz/documents/2-phoca-g ... d-glossary

Re: link shows all subcategories

Posted: 08 Mar 2011, 09:37
by miheli
I think i mean category in category, except that my parent category has no pictures to show. there are only the subcategories. them i would like to show with picture, title, description.

Re: link shows all subcategories

Posted: 14 Mar 2011, 16:27
by Jan
Hi,
Categories View in Category View you can modify in category view:

components/com_phocagallery/views/category/view.html.php


components/com_phocagallery/views/category/tmpl/default_categories.php

Jan

Re: link shows all subcategories

Posted: 16 Mar 2011, 19:09
by miheli
Thanks, now i found it and could edit it. but my php-knowledge is = 0, so could you tell me, how i can input the description here?

Code: Select all

echo '<td valign="top"><a href="'.$this->itemscv[$i]->link.'" class="contentheading'.$this->params->get( 'pageclass_sfx' ).'">'.$this->itemscv[$i]->title.'</a>&nbsp;';
		
		if ($this->itemscv[$i]->numlinks > 0) {echo '<span class="small">('.$this->itemscv[$i]->numlinks.')</span>';}
		
		echo '</td>';

Re: link shows all subcategories

Posted: 17 Mar 2011, 09:48
by miheli
Thank you for your help, the problem is solved.

Code: Select all

if ($this->itemscv[$i]->description != '') {
		   echo '<p>'.$this->itemscv[$i]->description.'</p>';
		}

Re: link shows all subcategories

Posted: 24 Mar 2011, 21:25
by Jan
Ok