Categories Detail View
-
topcat
- Phoca Member

- Posts: 26
- Joined: 30 Apr 2010, 17:46
Categories Detail View
Version 2.7.2
JOOMLA 1.5.18
http://topcatlive.com/index.php?option= ... Itemid=105
Categories, images and detail information is not working the way I expect. When selected in Menu Item Parameters (component) the description text and images show up along with the titles, number of images, and hits. Is there a way to ensure that the description does not show up in the categories view when images and detail info is selected?
JOOMLA 1.5.18
http://topcatlive.com/index.php?option= ... Itemid=105
Categories, images and detail information is not working the way I expect. When selected in Menu Item Parameters (component) the description text and images show up along with the titles, number of images, and hits. Is there a way to ensure that the description does not show up in the categories view when images and detail info is selected?
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Categories Detail View
Hi, if you will select detail info, it includes description of categories, if the description should be not displayed, this needs to be customized in the code 
Anyway, you should install black theme to have smooth icons displayed on your site, see:
https://www.phoca.cz/download/category/3 ... ery-themes
Jan
Anyway, you should install black theme to have smooth icons displayed on your site, see:
https://www.phoca.cz/download/category/3 ... ery-themes
Jan
If you find Phoca extensions useful, please support the project
-
topcat
- Phoca Member

- Posts: 26
- Joined: 30 Apr 2010, 17:46
Re: Categories Detail View
Can you recommend where I can get some help with that customization?
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Categories Detail View
If you find Phoca extensions useful, please support the project
-
imperialWicket
- Phoca Enthusiast

- Posts: 78
- Joined: 28 Feb 2010, 15:39
Re: Categories Detail View
These forums are a good place to get help with minor customizations, but I'm guessing Jan is busy enough keeping the extensions themselves in order.
If I understand your request, you should be able to find the /components/com_phocagallery/views/categories/tmpl/default.php file and locate the following code block (near line 181):
Commenting out the echo should keep the description value from displaying in the category list (but the description will still display in the category layout pages):
I hope I understood your request, and this works out for you -- good luck!
If I understand your request, you should be able to find the /components/com_phocagallery/views/categories/tmpl/default.php file and locate the following code block (near line 181):
Code: Select all
if ($this->categories[$i]->description != '') {
echo '<div>'.$this->categories[$i]->description.'</div><p> </p>';
}Code: Select all
if ($this->categories[$i]->description != '') {
// echo '<div>'.$this->categories[$i]->description.'</div><p> </p>';
}-
topcat
- Phoca Member

- Posts: 26
- Joined: 30 Apr 2010, 17:46
Re: Categories Detail View
Thanks imperial. That did it for removing the description. My question now is where do I go to edit the detail text? I would like Number of Images In Category changed to Images. And Category Viewed changed to Viewed.
I had a Gallery 3 installation but I left it for Phoca cause shadowbox was built in, multiple users, speed, and a whole lot of things. But I did like Gallery for the Categories View. I eventually want something very similar in my present Phoca gallery.
The gallery 3 is still up but there are no links to it: http://topcatlive.com/tcgallery
I believe I know how to get the medium image to that size (175).
I don't know how to get the text under the image instead of to the right of it.
And I'll try to find where to edit the text.
I had a Gallery 3 installation but I left it for Phoca cause shadowbox was built in, multiple users, speed, and a whole lot of things. But I did like Gallery for the Categories View. I eventually want something very similar in my present Phoca gallery.
The gallery 3 is still up but there are no links to it: http://topcatlive.com/tcgallery
I believe I know how to get the medium image to that size (175).
I don't know how to get the text under the image instead of to the right of it.
And I'll try to find where to edit the text.
-
imperialWicket
- Phoca Enthusiast

- Posts: 78
- Joined: 28 Feb 2010, 15:39
Re: Categories Detail View
The text strings for "Number of images in category" and "Category viewed" are hard-coded in the /components/com_phocagallery/views/categories/tmpl/default.php file. They are present in two or three locations; the appropriate version to change will depend on your configuration parameters (although best practice is to change all of them so that you can change parameters and not worry about losing your text modifications).
The styling is echo'd inline in that same file. After you figure out which detail layout is enabled for your site, you can focus on that particular section of the file (denoted by comments). In the default layout, the thumbnail is floated left and the text area has a large left margin. If you remove the float left from the image, and reduce the margin of the text area, it should give you an image with text beneath it. Depending on the number of categories you have and the layout you are using, you may also want to set the width of the category fieldset.
The styling is echo'd inline in that same file. After you figure out which detail layout is enabled for your site, you can focus on that particular section of the file (denoted by comments). In the default layout, the thumbnail is floated left and the text area has a large left margin. If you remove the float left from the image, and reduce the margin of the text area, it should give you an image with text beneath it. Depending on the number of categories you have and the layout you are using, you may also want to set the width of the category fieldset.
-
topcat
- Phoca Member

- Posts: 26
- Joined: 30 Apr 2010, 17:46
Re: Categories Detail View
Jeez that looks so much better. I fully understood your instructions and was able to get the text the way that I want it. I'll take on the float in the morning. Thanks. I have been frustrated by this for a good while.
-
zonhal
- Phoca Member

- Posts: 27
- Joined: 11 Nov 2009, 17:52
Re: Categories Detail View
Thanks for the explanation,!!
I would like NOT to display the number of item withing each category,that appears near the category title.
How can I do that?
Thanks
I would like NOT to display the number of item withing each category,that appears near the category title.
How can I do that?
Thanks
-
imperialWicket
- Phoca Enthusiast

- Posts: 78
- Joined: 28 Feb 2010, 15:39
Re: Categories Detail View
Avoid displaying number of images/sub-categories within a category on categories list display:
In /components/com_phocagallery/views/categories/tmp/default.php:
Locate this code and comment the echo:
It is present in multiple places, the code that is used depends on your configuration.
Good luck!
In /components/com_phocagallery/views/categories/tmp/default.php:
Locate this code and comment the echo:
Code: Select all
if ($this->categories[$i]->numlinks > 0) {
echo '<span class="small">('.$this->categories[$i]->numlinks.')</span>';
}
Good luck!