JOOM::GALLERY::FORUM

JoomGallery 2.x ACL => Backend / Administration => Topic started by: kunam on 22-12-2012 13:17:32



Title: How to custom feed & add category at image information
Post by: kunam on 22-12-2012 13:17:32
Hi all,

I am running Joomla! 2.5.8 and joomgallery Version 2.1.1
As the title says, I want to costum rss feed joomgallery and add category at image information in detail view.

1. RSS Feed: now "title foto and description", I want to change "title foto - category - author"
2. Image information in detail view: now "Description, Date, Hits, Rating, Author", I want to add category at image information "Category, Description, Date, Hits, Rating, Author".

Can someone give me tips about it ?
 
Thanks and Best Regards


Title: Re: How to custom feed & add category at image information
Post by: Chraneco on 22-12-2012 13:35:33
Hi,

for changing the RSS feed you have to edit file 'components/com_joomgallery/views/category/view.feed.php' which will be overriden with each update.
Maybe you can add the required change as an feature request here (https://joomgallery.uservoice.com/).

The views of JoomGallery (including detail view) can be modified using template overrides (http://www.en.joomgallery.net/documentation/common-information/template-overrides.html).

Regards
Chraneco


Title: Re: How to custom feed & add category at image information
Post by: kunam on 22-12-2012 17:18:45
Hi Chraneco,
Thanks for your respon

please help me tips to get/call category in php

example:

(http://i50.tinypic.com/2yvp9gw.jpg)

sorry, I was really just learning about this, so I hope many help

regards


Title: Re: How to custom feed & add category at image information
Post by: Chraneco on 27-12-2012 17:13:12
Hi,

did you succeed in creating a template override for the detail view?

If yes, you would have to set up a database query then which asks for the name of the current category. This one can be displayed at the desired position afterwards.

Regards
Chraneco


Title: Re: How to custom feed & add category at image information
Post by: kunam on 28-12-2012 08:12:36
Hi Chraneco,

last time I try but still not succeeded :-(

I am using this code <?php echo $this->image->catid; ?>
at component/com_joomgallery/views/detail/tmpl/default.php
but only show id category not category name

regards


Title: Re: How to custom feed & add category at image information
Post by: miloskorac on 19-05-2018 18:48:58
Hi,

for changing the RSS feed you have to edit file 'components/com_joomgallery/views/category/view.feed.php' which will be overriden with each update.

Regards
Chraneco
This file components/com_joomgallery/views/category/view.feed.php is the same in all versions.

where to edit this line that is incorrect; <atom:link rel="self" type="application/rss+xml" href=".....

it is adding
Code:
&amp;
after url, so there is an validation error
Code:
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> ^ Error 1845: Element 'rss': No matching global declaration available for the validation root. on line: 3 column: 0
<?xml version="1.0" encoding="utf-8"?> ^ URL Invalid on line: 1 column:


Title: Re: How to custom feed & add category at image information
Post by: miloskorac on 19-05-2018 18:52:39
It is related with
Code:
?format=feed&amp;type=rss"/>
at the end of the line
Code:
<atom:link rel="self" type="application/rss+xml" href="...