Welcome, Guest. Please login or register.
Did you miss your activation email?

 
Advanced search

22622 Posts in 6670 Topics- by 17596 Members - Latest Member: permsk

23-09-2018 19:13:37
JOOM::GALLERY::FORUMJoomGallery 2.x ACLBackend / AdministrationHow to custom feed & add category at image information
Pages: [1]
Print
Author Topic: How to custom feed & add category at image information  (Read 2395 times)
0 Members and 1 Guest are viewing this topic.
kunam
Newbie
*
Offline Offline

Posts: 28


View Profile
« 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
Logged
Chraneco
Developer-Team
Hero Member
*****
Offline Offline

Posts: 3544


View Profile
« Reply #1 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.

The views of JoomGallery (including detail view) can be modified using template overrides.

Regards
Chraneco
Logged
kunam
Newbie
*
Offline Offline

Posts: 28


View Profile
« Reply #2 on: 22-12-2012 17:18:45 »

Hi Chraneco,
Thanks for your respon

please help me tips to get/call category in php

example:



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

regards
« Last Edit: 22-12-2012 17:28:30 by kunam » Logged
Chraneco
Developer-Team
Hero Member
*****
Offline Offline

Posts: 3544


View Profile
« Reply #3 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
Logged
kunam
Newbie
*
Offline Offline

Posts: 28


View Profile
« Reply #4 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
Logged
miloskorac
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #5 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:
Logged
miloskorac
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #6 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="...
Logged
Pages: [1]
Print
Jump to:  

HOSTED BY SCHWARZKÜNSTLER ®

PROTECTED BY  ZB BLOCK  AND Project Honey Pot
Theme orange-lt created by panic

Bad Behavior has blocked 745 access attempts in the last 7 days.

maternal