View Full Version : List of CMS articles?
licensinglinks
03-21-2014, 04:54 PM
I would like to link to a page of search results showing a list of all CMS articles, with the most recent at the top of this list.
Is this possible?
Lynne
03-21-2014, 07:14 PM
On my site, I had created a PHP Article and entered this code to list all articles in nodeid 2. Modify to suit your needs:
$myquery2 =vB::$vbulletin->db->query_read_slave($myquery = "SELECT cms_nodeinfo.title AS title FROM cms_nodeinfo RIGHT JOIN cms_node ON (cms_node.nodeid=cms_nodeinfo.nodeid) WHERE cms_node.parentnode = 2 AND cms_node.contenttypeid = 18");
while ($myarts = vB::$vbulletin->db->fetch_array($myquery2))
{
$output .= $myarts['title']."<br />";
}
licensinglinks
03-22-2014, 02:13 PM
Thanks, but is there a simpler way? Just list of search results would do.
e.g. I use this link to display "hot topics":
http://www.mechanicaldesignforum.com/search.php?do=process&contenttype=vBForum_Post&replymore=1&replylimit=1&exclude=27,40,41,29,30,31,32,33,49
Can I do a similar thing to just list all articles?
Lynne
03-22-2014, 06:49 PM
No, there is no similar method for the cms articles. Well, if they are all in the same section, or same category, then they will all get listed.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.