I don't remember a specific function to have a feed from articles, but I may be terribly wrong, because I'm not that expert in that particular area...
Well, indeed, there isn't such a function. I searched in the "news.php" (I should have make this in first place
), but I just couldn't found it.
Anyway, I managed to solve the issue. The solution maybe sound simple, but, I just suck in database's stuff. I'll put it here, in case it may be useful to someone.
First of all, you must localize the "news.php" file (in "Source" folder). Now, you must search the following line:
'profile' => array('getXmlProfile', null),
And put bellow of it:
'articulos' => array('getXmlArticulos', null),
"articulos" ("articles" in Spanish), you can change it for the variable you want (e.g. "articles").
In this way, you are creating a "subaction" for the ".xml" action with the name "articulos".
Now, you must create the "getXmlArticulos" function. This is the most important part.
Here, you only copy-paste all the "getXmlNews" function to the final of php file (obviously, before the "?>"), and replace the variable name with "getXmlArticulos".
Then, you must search the follow code line inside of "getXmlArticulos",
not in "getXmlNews" :
topics AS t
And replace with:
sp_articles AS a
INNER JOIN {db_prefix}topics AS t ON(t.id_first_msg = a.id_message)
In this way, you get a "xml" similar to with subaction "news", but only with the articles.
For get the .xml, now you only must type in the browser bar "
www.yourdomain.com/index.php?action=.xml;sa=articulos;type=rss;limit=5".
Well, anyway, thanks for the support!
PD: If something it sounded weird, sorry, but I'm not used to write in English
.