You need to be logged in to view a user's profile.
  Monday, 12 June 2023
  7 Replies
  264 Visits
0
Votes
Undo
Since upgrading to jEvents 3.6.55 the RSS feed provided my the Latest Events module (modlatest) seem to have changed. We previously customized the feed to include custom fields, but when adding it to rss.php they do not appear. We previously added the below code to the requiered fields:

$item->startDate = $item_startdate;
$item->endDate = $item_enddate;
$item->identifier = $row->get('extra_info');
$item->season = $row->customfields['season']['value'];
$item->state = $row->customfields['Status']['value'];
$country_3lc = str_replace('/','',$row->get('loc_country'));
$item->countryName = $country_3lc;
$item->countryCode = $country_3lc;
$item->countryFlag = JUri::base().'images/jevents/jevlocations/thumbnails/thumb_'.$row->get('loc_image');
$item->logo = $row->_imageurl1? (JUri::base().$row->_imageurl1) : '';
$item->picture = $row->_imageurl2? (JUri::base().$row->_imageurl2) : '';
$item->id = $item_slug;
$item->city = $row->get('loc_city');
$item->city = $row->get('loc_city');
$item->standardimage2 = $row->_imageurl2? (JUri::base().$row->_imageurl2) : '';;
$item->shortname = $row->get('extra_info');
$item->type = $row->customfields['type']['value'];
$item->subtype = $row->customfields['subtype']['value'];

Should customfields be called a different way ?
jbonjour set the post as Normal priority — 11 months ago
jbonjour set the type of the post as  Technical — 11 months ago
11 months ago
·
#231120
0
Votes
Undo
You still have the custom fields plugin configured to output in 'list' views?

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

10 months ago
·
#231292
0
Votes
Undo
Hi Geraint, yes the plugin is set to display the output in list. I also played around with rss.php and adding:

$item->comments ="";
foreach( $row->customfields as $key => $custom) {
$item->comments .= "<$key>".$row->customfields[$key]['value']."</$key>";
#$item->comments .= "<$key>".$key."</$key>\n";
}
$item->comments .="\n";

Gives me a list of all custom fields within <comments></comments> however when I try to make it independent for a single field, neither:

$item->season = $row->customfields['season']['value'];

or:

$item->season = $row->customfields['season']['value'];
foreach( $row->customfields['season']['value'] as $key => $custom) {
$item->season .= "<season>".$row->customfields['season']['value']."</season>";
}

gives us an output.
10 months ago
·
#231318
0
Votes
Undo
Yes it is. Have you received my two last messages ?
10 months ago
·
#231319
0
Votes
Undo
I have used the proposed default code which gives me a list of all custom fields within the comments tag:


$item->comments ="";
foreach( $row->customfields as $key => $custom) {
$item->comments .= "<$key>".$row->customfields[$key]['value']."</$key>";
#$item->comments .= "<$key>".$key."</$key>\n";
}
$item->comments .="\n";


But when I try with a single custom field I get nothing:


$item->season = $row->customfields['season']['value'];
foreach( $row->customfields['season']['value'] as $key => $custom) {
$item->season .= "<season>".$row->customfields['season']['value']."</season>";
}


Any tips ?
10 months ago
·
#231338
0
Votes
Undo
Take a look at the Joomla RssRenderer.php file at libraries/src/Document/Renderer/Feed/RssRenderer.php

comments are supported but not other output fields

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

10 months ago
·
#231384
0
Votes
Undo
Hi Geraint, this was the file I forgot about. I have been able to update it and now my RSS feed is working in the desired format. Thank you !
10 months ago
·
#231412
0
Votes
Undo
If you change this file anything you add will be lost when you upgrade Joomla.

If you have a use case for extending the functionality you could create Pull Request at Joomla - https://github.com/joomla/joomla-cms/blob/4.3-dev/libraries/src/Document/Renderer/Feed/RssRenderer.php

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.