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

From Issuepedia
Jump to navigation Jump to search
(added noLoad flag to skip loading the pages)
(minor fixes and debug code)
Line 71: Line 71:
 
     <let name=topic parse>{{PAGENAME}}</let>
 
     <let name=topic parse>{{PAGENAME}}</let>
 
   </if>
 
   </if>
   <let name=topic with="_"> </let>
+
   <let name=topic self with="_"> </let>
  
 
   <let name=sqlWhere>(page_namespace=0) AND (cl_to='</let>
 
   <let name=sqlWhere>(page_namespace=0) AND (cl_to='</let>
  <let name=sqlWhere append copy=topic />
 
  <let name=sqlWhere append>') AND (page_title != '</let>
 
 
   <let name=sqlWhere append copy=topic />
 
   <let name=sqlWhere append copy=topic />
 
   <let name=sqlWhere append>')</let>
 
   <let name=sqlWhere append>')</let>
 +
 +
  <let name=links.rtn>SQL: </let>
 +
  <let name=links.rtn append copy=sqlWhere />
 
   <for table="qryW3_Titles_Catgs" where=$sqlWhere sort="page_title DESC" name=pg empty="no items yet" limit=$iMax 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 />
     <load page=$pg_title />
+
     <if not flag=noLoad>
     <call GetBrief />
+
      <load page=$pg_title local />
 +
     </if>
 
     <if flag=data[Title]>
 
     <if flag=data[Title]>
 
       <call GetBrief />
 
       <call GetBrief />
 
     </if><else>
 
     </if><else>
<!-- if no new-style data, just display link to page so we can fix the problem: -->
 
 
       <let name=links.out>
 
       <let name=links.out>
 
* [[</let>
 
* [[</let>

Revision as of 14:55, 10 October 2008