Page 1 of 1

Gallery description

Posted: 08 Mar 2010, 19:24
by mutala
So I've got a few sub-categories, and I'd like their description shown in the category view. Like image description. Is that possible?

Re: Gallery description

Posted: 09 Mar 2010, 21:13
by Jan
Hi, if you mean displaying description below the thumbnails:
https://www.phoca.cz/templatedemo/phoca- ... escription

you can enable it in parameters:
https://www.phoca.cz/documents/2-phoca-g ... -menu-item

Jan

Re: Gallery description

Posted: 09 Mar 2010, 21:27
by siddan
If I understand you correctly,,, then there is no option to display description for subategories in a category view display.
I only know you can display description under categories when you view the main page of Phocagallery
For this you have to link to Phoca gallery Category List Layout

Re: Gallery description

Posted: 09 Mar 2010, 22:02
by mutala
Jan, I want the description just like that under the pics, but for categories.

And siddan, I have my gallery front page as one user's cat, in which are all the (sub)categories. And I'd like to have description shown for these.

Thanks already mates.

Re: Gallery description

Posted: 09 Mar 2010, 22:18
by siddan
Hi, I couldn“t reply sooner, was accused of spamming :)

Do you only have one category shown on the front page?
Cus you can enable to also show subcategories with its description, it just will not tell you that they are actually subcategories

Re: Gallery description

Posted: 09 Mar 2010, 22:29
by mutala
siddan wrote:Hi, I couldn“t reply sooner, was accused of spamming :)

Do you only have one category shown on the front page?
Cus you can enable to also show subcategories with its description, it just will not tell you that they are actually subcategories

How can I do that?

Re: Gallery description

Posted: 09 Mar 2010, 22:34
by siddan
You have an option to display sub categries Yes or No

8th option from the top in Global Configuration
And the 3rd option you can select how to display the Categories, with detail information

https://www.phoca.cz/documents/2-phoca-galle ... egory_List_

Re: Gallery description

Posted: 09 Mar 2010, 22:42
by mutala
siddan wrote:You have an option to display sub categries Yes or No

8th option from the top in Global Configuration
And the 3rd option you can select how to display the Categories, with detail information

https://www.phoca.cz/documents/2-phoca-galle ... egory_List_

And is there something to manage what I see there? Like, I don't really want all this info "viewed, image count" etc. And if I could get the height to match. :D

Hope I'm not asking stupid things.

Thanks again mate. :)

Re: Gallery description

Posted: 09 Mar 2010, 23:01
by siddan
Hehe I was waiting for that question :D

Have a look at this thread. Needs a little hacking in the core files, though.
https://www.phoca.cz/forum/viewtopic.php?f=1&t=7824

But if you are not familiar with php you can comment out whole lines of code with //
Just place "//" after echo //

Re: Gallery description

Posted: 10 Mar 2010, 16:14
by mutala
Can I just copy something like this:

Code: Select all

echo '<div style="margin-right:5px;margin-left:'.$this->tmpl['imagewidth'].'px;">';
		if ($this->categories[$i]->description != '') {
		   echo '<div>'.$this->categories[$i]->description.'</div><p>&nbsp;</p>';
		}
to category/default.php? If so, then where?

Thanks again.