Difference between revisions of "Issuepedia:Code/lib/links"

From Issuepedia
Jump to navigation Jump to search
(disallow same page in output -- should at least prevent recursion no matter how messed up anything else gets)
(add limit=$iMax)
Line 62: Line 62:
 
</func>
 
</func>
  
<func ShowTopic iTopic>
+
<func ShowTopic iTopic iMax>
 
   <let name=idx />
 
   <let name=idx />
 
   <let name=including val=1 />
 
   <let name=including val=1 />
Line 76: Line 76:
 
   <let name=sqlWhere append copy=topic />
 
   <let name=sqlWhere append copy=topic />
 
   <let name=sqlWhere append>')</let>
 
   <let name=sqlWhere append>')</let>
   <for table="qryW3_Titles_Catgs" where=$sqlWhere sort="page_title DESC" name=pg empty="no items yet" limit=20 hide>
+
   <for table="qryW3_Titles_Catgs" where=$sqlWhere sort="page_title DESC" name=pg empty="no items yet" limit=$iMax hide>
 
     <let name=pg_title val="@row.pg.page_title" />
 
     <let name=pg_title val="@row.pg.page_title" />
 
     <let name=idx inc />
 
     <let name=idx inc />

Revision as of 22:41, 6 October 2008