ajax listing for articles ina spefici category
- moncini
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
16 years 8 months ago #2418
by moncini
Hi guys,
nobody has done such a similar listing?
i am not able to do via xml or php.
So if somebody wanna share would be very appreciated.
Regards
Massimo
nobody has done such a similar listing?
i am not able to do via xml or php.
So if somebody wanna share would be very appreciated.
Regards
Massimo
Please Log in or Create an account to join the conversation.
- Arnaud
- Offline
- New Member
Less
More
- Thank you received: 0
16 years 8 months ago #2419
by Arnaud
Hi moncini !
I've spent hours to build my own (as i'm a non developer it tooks me a long time ). But now i can
What informations do you want to show ?
I've spent hours to build my own (as i'm a non developer it tooks me a long time ). But now i can
What informations do you want to show ?
Please Log in or Create an account to join the conversation.
- Arnaud
- Offline
- New Member
Less
More
- Thank you received: 0
16 years 8 months ago #2420
by Arnaud
Here is a very simple but working XML plugin :
XXX need to be replaced by your own configuration !
Arnaud
<?xml version="1.0" encoding="iso-8859-1"?>
<listing>
<name>Latest News for a specific category</name>
<query>SELECT id, title FROM #__content WHERE state = "1" AND sectionid = "XXX" AND catid = "XXX" ORDER BY created DESC</query>
<htmlline>
<table>
<![CDATA[
- <a href="index.php?option=com_content&task=view&id=%s&Itemid=XXX>%s</a>
]]>
</table>
</htmlline>
</listing>
XXX need to be replaced by your own configuration !
Arnaud
Please Log in or Create an account to join the conversation.
- moncini
- Topic Author
- Offline
- New Member
Less
More
- Thank you received: 0
16 years 8 months ago #2423
by moncini
thanks a lot!
i need to show all the article of a specific category, not the latest but all. may i use it? do i add only the id of the category?
i need to show all the article of a specific category, not the latest but all. may i use it? do i add only the id of the category?
Please Log in or Create an account to join the conversation.
- Arnaud
- Offline
- New Member
Less
More
- Thank you received: 0
16 years 8 months ago #2424
by Arnaud
you're welcome Moncini
Yes, just add section id and category id from your configuration. You also need the Itemid. To have it, just look at your menu configuration in the admin area (if you have set a menu item for this category !).
If you need more help, do not hesitate
Arnaud
Yes, just add section id and category id from your configuration. You also need the Itemid. To have it, just look at your menu configuration in the admin area (if you have set a menu item for this category !).
If you need more help, do not hesitate
Arnaud
Please Log in or Create an account to join the conversation.