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:)
link shows all subcategories
-
miheli
- Phoca Member

- Posts: 12
- Joined: 15 Aug 2010, 17:13
link shows all subcategories
Last edited by miheli on 01 Mar 2011, 18:12, edited 1 time in total.
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: link shows all subcategories
Hi, you can change the template here:
components/com_phocagallery/views/categories/tmpl/default.php
components/com_phocagallery/views/category/tmpl/default.php
Jan
components/com_phocagallery/views/categories/tmpl/default.php
components/com_phocagallery/views/category/tmpl/default.php
Jan
If you find Phoca extensions useful, please support the project
-
miheli
- Phoca Member

- Posts: 12
- Joined: 15 Aug 2010, 17:13
Re: link shows all subcategories
Thanks for your answer, i will try it.
-
miheli
- Phoca Member

- Posts: 12
- Joined: 15 Aug 2010, 17:13
Re: link shows all subcategories
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.
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.
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: link shows all subcategories
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
Categories View?
Category View?
Categories View in Category View?
https://www.phoca.cz/documents/2-phoca-g ... d-glossary
If you find Phoca extensions useful, please support the project
-
miheli
- Phoca Member

- Posts: 12
- Joined: 15 Aug 2010, 17:13
Re: link shows all subcategories
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.
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: link shows all subcategories
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
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
If you find Phoca extensions useful, please support the project
-
miheli
- Phoca Member

- Posts: 12
- Joined: 15 Aug 2010, 17:13
Re: link shows all subcategories
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> ';
if ($this->itemscv[$i]->numlinks > 0) {echo '<span class="small">('.$this->itemscv[$i]->numlinks.')</span>';}
echo '</td>';-
miheli
- Phoca Member

- Posts: 12
- Joined: 15 Aug 2010, 17:13
Re: link shows all subcategories
Thank you for your help, the problem is solved.
Code: Select all
if ($this->itemscv[$i]->description != '') {
echo '<p>'.$this->itemscv[$i]->description.'</p>';
}- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact: