Keyword

Modify RSS Output?

  • 8-Bit Classics
  • 8-Bit Classics's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 3 months ago #84097 by 8-Bit Classics
Modify RSS Output? was created by 8-Bit Classics
I would like to integrate some of the extra fields data into the RSS feeds, but can't find where the file is. Can anybody point me in the right direction?Thanks,Corey

Please Log in or Create an account to join the conversation.

  • 8-Bit Classics
  • 8-Bit Classics's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 3 months ago #84098 by 8-Bit Classics
Replied by 8-Bit Classics on topic Modify RSS Output?
bump

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #84099 by Josh Wigginton
Replied by Josh Wigginton on topic Modify RSS Output?
Looking for the same/similar thing. I would like to include the related video in the RSS feed to create a podcast from the RSS.

Please Log in or Create an account to join the conversation.

  • 8-Bit Classics
  • 8-Bit Classics's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 2 months ago #84100 by 8-Bit Classics
Replied by 8-Bit Classics on topic Modify RSS Output?
I found the file that has the RSS portion, but it isn't in a template file so modification of core system files is necessary. I haven't made the modifications myself yet.

Josh Wigginton said:Looking for the same/similar thing. I would like to include the related video in the RSS feed to create a podcast from the RSS.

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #84101 by Josh Wigginton
Replied by Josh Wigginton on topic Modify RSS Output?
What is the file that needs to be modified. While it would be ideal to have it be a template file, I can live w/ having to add the modification again if I update. I've already had to make plenty of other core modifications for adding mp3 support and adding my own flash mp3 player.

Corey Koltz said:I found the file that has the RSS portion, but it isn't in a template file so modification of core system files is necessary. I haven't made the modifications myself yet.
Josh Wigginton said:Looking for the same/similar thing. I would like to include the related video in the RSS feed to create a podcast from the RSS.

Please Log in or Create an account to join the conversation.

  • 8-Bit Classics
  • 8-Bit Classics's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 2 months ago #84102 by 8-Bit Classics
Replied by 8-Bit Classics on topic Modify RSS Output?
When I get on my home computer, I will look it up and post what it is.

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #84103 by Alex Stavrou
Replied by Alex Stavrou on topic Modify RSS Output?
I also want to add the related video, somehow in the RSS feed.

Any ideas?

Please Log in or Create an account to join the conversation.

  • 8-Bit Classics
  • 8-Bit Classics's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 2 months ago #84104 by 8-Bit Classics
Replied by 8-Bit Classics on topic Modify RSS Output?
I just modified the K2 AutoArchive plugin to archive stuff before it gets unpublished, so I have a little time to look at this now. I will post any progress.

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #84105 by Josh Wigginton
Replied by Josh Wigginton on topic Modify RSS Output?
Also found in components/com_k2/models/item.php around line 219:

function prepareFeedItem(&$item){

JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR.DS.'tables');
$params = & JComponentHelper::getParams('com_k2');
$limitstart=0;

//Category
$category = & JTable::getInstance('K2Category', 'Table');
$category->load($item->catid);
$item->category=$category;

//Read more link
$item->link=urldecode(JRoute::_(K2HelperRoute::getItemRoute($item->id.':'.$item->alias,$item->catid.':'.urlencode($item->category->alias))));

//Filtering
if ($params->get('introTextCleanup')){
$filterTags = preg_split( '#[,\s]+#', trim( $params->get( 'introTextCleanupExcludeTags' ) ) );
$filterAttrs = preg_split( '#[,\s]+#', trim( $params->get( 'introTextCleanupTagAttr' ) ) );
$filter = new JFilterInput( $filterTags, $filterAttrs, 0, 1 );
$item->introtext= $filter->clean( $item->introtext );
}

if ($params->get('fullTextCleanup')){
$filterTags = preg_split( '#[,\s]+#', trim( $params->get( 'fullTextCleanupExcludeTags' ) ) );
$filterAttrs = preg_split( '#[,\s]+#', trim( $params->get( 'fullTextCleanupTagAttr' ) ) );
$filter = new JFilterInput( $filterTags, $filterAttrs, 0, 1 );
$item->fulltext= $filter->clean( $item->fulltext );
}

//Description
$item->description = '';

//Item image
if ($params->get('feedItemImage') && JFile::exists(JPATH_SITE.DS.'media'.DS.'k2'.DS.'items'.DS.'cache'.DS.md5("Image".$item->id).'_'.$params->get('feedImgSize').'.jpg')){
$item->description.= 'id).'_'.$params->get('feedImgSize').'.jpg" alt="'.$item->title.'"/>
'; }

//Item Introtext
if($params->get('feedItemIntroText')){
//Introtext word limit
if ($params->get('feedTextWordLimit')){
$item->introtext=K2HelperUtilities::wordLimit($item->introtext,$params->get('feedTextWordLimit'));
}
$item->description.= ''.$item->introtext.'
'; }

//Item Fulltext
if($params->get('feedItemFullText')){
$item->description.= ''.$item->fulltext.'
'; }

//Author
if (!empty($item->created_by_alias)){
$item->author->name = $item->created_by_alias;
}
else {
$author=JFactory::getUser($item->created_by);
$item->author = $author;
$item->author->link = JRoute::_(K2HelperRoute::getUserRoute($item->created_by));
$item->author->profile = K2ModelItem::getUserProfile($item->created_by);
}

return $item;
}

function execPlugins($item, $view, $task){

$params = & JComponentHelper::getParams('com_k2');
$limitstart=JRequest::getInt('limitstart');


I took a few minutes and was able to output the relative path to the video enclosed in my {mp3file} tags, but I need either just the full link or the full video/mp3 for it to properly enclose it for a podcast rss feed.

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #84106 by Josh Wigginton
Replied by Josh Wigginton on topic Modify RSS Output?
Bump -> Anyone have a clue how to add video item to K2 RSS Feed?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum