Hi !
Thanks a lot for this great job ! PhocaGallery is really great !
I am using the Image Module.
I would like to use it in order to display the latest category on my homepage : I would like to display one of the image of this category, but also the name of this category.
For the moment, I can just display the lastest image of my Phocagallery (using "date descending" in the module)
Thanks for any help !
Bubble
website : http://ecolepourtousaucambodge.org
Display latest category
-
- Phoca Newbie
- Posts: 9
- Joined: 16 Feb 2010, 15:56
Display latest category
http://ecolepourtousaucambodge.org
(French school in Kep, Cambodia)
(French school in Kep, Cambodia)
-
- Phoca Professional
- Posts: 407
- Joined: 29 Dec 2008, 22:06
Re: Display latest category
Hi bubble,
at the moment it's not possible to display the category name (without editing the code)
regards,
rk
at the moment it's not possible to display the category name (without editing the code)
regards,
rk
-
- Phoca Newbie
- Posts: 9
- Joined: 16 Feb 2010, 15:56
Re: Display latest category
hello,
thanks for your answer !
I imagine the modification of the code is not very complicated no ?
Is someone has ever done this kind of thing ?
++
Bubble
thanks for your answer !
I imagine the modification of the code is not very complicated no ?
Is someone has ever done this kind of thing ?
++
Bubble
http://ecolepourtousaucambodge.org
(French school in Kep, Cambodia)
(French school in Kep, Cambodia)
-
- Phoca Professional
- Posts: 407
- Joined: 29 Dec 2008, 22:06
Re: Display latest category
no probably not. I don't remember reading something about that in the forum, but try searching for it
since you can set the image-link to directs visitors to the category of the image, the information is already there. maybe thats the point to start looking?
it would be great if you could post any results you achieve!
thx,
rk
since you can set the image-link to directs visitors to the category of the image, the information is already there. maybe thats the point to start looking?
it would be great if you could post any results you achieve!
thx,
rk
-
- Phoca Newbie
- Posts: 9
- Joined: 16 Feb 2010, 15:56
Re: Display latest category
hello,
So, I managed to do it like this (in a very crude way !!) :
1) I edit : /www/modules/mod_phocagallery_image/mod_phocagallery_image.php
2) Line 523, I add to the SQL query : cc.title as titlecat (in SELECT ....)
Now in *->titlecat, you have the name of the category of the image.
3) For my own purpose, I add this :
line 831 : $output[$i] .= "<center>$valueImages->titlecat</center>";
So the name of the category is displayed below the image
Example : http://ecolepourtousaucambodge.org/
(top right column)
Well, it could be great to add this as a parameter of the module.
Is someone could give me any help for this ?
thanks !
Bubble
So, I managed to do it like this (in a very crude way !!) :
1) I edit : /www/modules/mod_phocagallery_image/mod_phocagallery_image.php
2) Line 523, I add to the SQL query : cc.title as titlecat (in SELECT ....)
Now in *->titlecat, you have the name of the category of the image.
3) For my own purpose, I add this :
line 831 : $output[$i] .= "<center>$valueImages->titlecat</center>";
So the name of the category is displayed below the image
Example : http://ecolepourtousaucambodge.org/
(top right column)
Well, it could be great to add this as a parameter of the module.
Is someone could give me any help for this ?
thanks !
Bubble
http://ecolepourtousaucambodge.org
(French school in Kep, Cambodia)
(French school in Kep, Cambodia)
-
- Phoca Professional
- Posts: 407
- Joined: 29 Dec 2008, 22:06
Re: Display latest category
great, thank you!
Jan is the only developer for the phoca extension, maybe he can help you, or add it to one of the next releases.
Jan is the only developer for the phoca extension, maybe he can help you, or add it to one of the next releases.
-
- Phoca Newbie
- Posts: 9
- Joined: 16 Feb 2010, 15:56
Re: Display latest category
ok, I hope Jan will see these posts...
http://ecolepourtousaucambodge.org
(French school in Kep, Cambodia)
(French school in Kep, Cambodia)
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Display latest category
Hi, sorry I don't understand, in image module, you can set the category
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 407
- Joined: 29 Dec 2008, 22:06
Re: Display latest category
Hi Jan, above we where talking about the possibility to show the name of the category the displayed image belongs to.
Regards,
rk
Regards,
rk
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Display latest category
Hi,
I have answered the first sentence:
I would like to display one of the image of this category
this needs to be customized in the module. For now I have no info what should be customized as I didn't do such modifications yet.
But in the module there should be loaded the info about category so this then should be pasted below the images, e.g.
echo '<div>'. info about category (I don't know the variable (object) name yet as I am not on my PC now .'</div>';
Jan
I have answered the first sentence:
I would like to display one of the image of this category
The second - yes there is no such feature yet ,I would like to display one of the image of this category, but also the name of this category.
For the moment, I can just display the lastest image of my Phocagallery (using "date descending" in the module)
this needs to be customized in the module. For now I have no info what should be customized as I didn't do such modifications yet.
But in the module there should be loaded the info about category so this then should be pasted below the images, e.g.
echo '<div>'. info about category (I don't know the variable (object) name yet as I am not on my PC now .'</div>';
Jan
If you find Phoca extensions useful, please support the project