Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Download Elxis CMS:
Elxis 5.5 Hermes
.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
[How to?]RSS full display
« previous
next »
Print
Pages: [
1
]
Author
Topic: [How to?]RSS full display (Read 5370 times)
striker
Newbie
Posts: 39
[How to?]RSS full display
«
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.
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: [How to?]RSS full display
«
Reply #1 on:
April 26, 2017, 22:45:07 »
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!
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
striker
Newbie
Posts: 39
Re: [How to?]RSS full display
«
Reply #2 on:
May 03, 2017, 06:48:41 »
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"
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: [How to?]RSS full display
«
Reply #3 on:
May 03, 2017, 08:22:08 »
Make sure you have deleted the cache. RSS feeds are saved in repository cache folder.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
[How to?]RSS full display