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

From Issuepedia
Jump to navigation Jump to search
m (Protected "Issuepedia:Code/lib/links": to enable SQL features [edit=sysop:move=sysop])
(currently can't echo from inside a func; syntax to be resolved. Save data to var and echo from calling code.)
Line 1: Line 1:
 
<hide>
 
<hide>
<func Links.ShowRecent max>
+
<func ShowRecent max>
 
   <let name=idx />
 
   <let name=idx />
<echo>MAX: <get name=max /></echo>
 
 
   <for table="qryW3_Titles_Catgs" where="(cl_to='Data/links')" name=pg limit=$max hide>
 
   <for table="qryW3_Titles_Catgs" where="(cl_to='Data/links')" name=pg limit=$max 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 />
 
     <load page=$pg_title />
 
     <load page=$pg_title />
     <let name=out>'''</let>
+
     <let name=out>
 +
* '''</let>
 
     <let name=out append copy=data[Date] />
 
     <let name=out append copy=data[Date] />
 
     <let name=out append>''' /'''[[</let>
 
     <let name=out append>''' /'''[[</let>
Line 42: Line 42:
 
     <let name=out append>|more...]]''</let>
 
     <let name=out append>|more...]]''</let>
  
     <echo>
+
     <let name=return append copy=out />
* <get name=out /></echo>
 
 
   </for>
 
   </for>
 
</func>
 
</func>
 
</hide>
 
</hide>

Revision as of 14:58, 25 September 2008