Dragonfly CMS v9 ⇒ Modules & Blocks :: Archives ⇒ Block Last 10 sections articles & Top 10 sections articles :: Archived ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexModules & Blocks

Archived ⇒ Block Last 10 sections articles & Top 10 sections articles


How to add a Block to show Last 10 sections articles and Top 10 sections articles from the module Sections?

this is the original code of the block which just shows one section article.

if (!defined('CPG_NUKE')) { die("You can't access this file directly..."); } global $db, $prefix; $sql = "SELECT artid, title FROM ".$prefix."_seccont ORDER BY artid DESC LIMIT 0,10"; $result = $db->sql_query($sql); while (list($artid, $title) = $db->sql_fetchrow($result)) { $content = "<img src=\"images/arrow.gif\" border=\"0\" alt=\"\" title=\"\" width=\"9\" height=\"9\" />\n" ." \n" ."<a href=\"".getlink("Sections&op=viewarticle&artid=$artid")."\">$title</a>\n" ."<br />\n"; } ?>

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Dragonfly


We stopped using/providing the Sections module long ago, before DragonflyCMS even, and don't advise its use. You may have trouble finding anyone familiar with it.

Show us the link where American School Directory uses DragonflyCMS!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

All times are UTC