Elxis CMS Forum
Support => General => Topic started by: striker on April 25, 2017, 03:19:37
-
Hi everyone,
I'm trying to crack the codes in the feed php file of elxis core for me to display the entire article at the RSS view since by default it's only showing up until the description section.
How can I do this?
Thank you in advance.
-
Only the article's introduction text is fetched. To fetch main text you need to do the following.
Open file: components/com_content/models/content.model.php
on line 295 change this:
OR (".$this->db->quoteId('element')." = ".$this->db->quote('caption')."))"
to this:
OR (".$this->db->quoteId('element')." = ".$this->db->quote('caption').") OR (".$this->db->quoteId('element')." = ".$this->db->quote('maintext')."))"
Open file: components/com_content/controllers/base.php
Find line 775:
case 'introtext': $rows[$id]->introtext = $trans['translation']; break;
Add below:
case 'maintext': $rows[$id]->maintext = $trans['translation']; break;
Open file: components/com_content/controllers/generic.php
Fine lines 163-164:
$itemdesc .= $desc;
}
Add below:
if (trim($article->maintext) != '') {
$desc = $ePlugin->removePlugins($article->maintext);
$desc = strip_tags($desc);
$itemdesc .= ' '.$desc;
}
That's it. Test it!
-
Hi datahell,
Thank you for the thorough walkthrough. However, upon testing these tweaks to two different domains using elxis CMS, the suggested codes didn't obtain the actual result.
What I see is still the same. The RSS format(view) only show up until the intro part but not the entire "maintext"
-
Make sure you have deleted the cache. RSS feeds are saved in repository cache folder.