Page 1 of 2

Categories Detail View

Posted: 05 Jul 2010, 14:14
by topcat
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?

Re: Categories Detail View

Posted: 05 Jul 2010, 18:22
by Jan
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

Re: Categories Detail View

Posted: 08 Jul 2010, 11:26
by topcat
Can you recommend where I can get some help with that customization?

Re: Categories Detail View

Posted: 08 Jul 2010, 22:08
by Jan
:( No, I don't know anybody with php and Phoca Gallery skills :-( maybe some freelance site where people offer customization for Joomla! components :( :idea:

Re: Categories Detail View

Posted: 11 Jul 2010, 04:59
by imperialWicket
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):

Code: Select all

if ($this->categories[$i]->description != '') {
   echo '<div>'.$this->categories[$i]->description.'</div><p>&nbsp;</p>';
}
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):

Code: Select all

if ($this->categories[$i]->description != '') {
   // echo '<div>'.$this->categories[$i]->description.'</div><p>&nbsp;</p>';
}
I hope I understood your request, and this works out for you -- good luck!

Re: Categories Detail View

Posted: 15 Jul 2010, 11:35
by topcat
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.

Re: Categories Detail View

Posted: 15 Jul 2010, 14:27
by imperialWicket
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.

Re: Categories Detail View

Posted: 16 Jul 2010, 01:22
by topcat
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.

Re: Categories Detail View

Posted: 16 Jul 2010, 07:49
by zonhal
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

Re: Categories Detail View

Posted: 16 Jul 2010, 13:46
by imperialWicket
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:

Code: Select all

if ($this->categories[$i]->numlinks > 0) {
	echo '<span class="small">('.$this->categories[$i]->numlinks.')</span>';
}	
It is present in multiple places, the code that is used depends on your configuration.

Good luck!