Difference between revisions of "HypertWiki:Code/lib/data"

From HypertWiki
Jump to navigation Jump to search
(-nocat on loading page (should be redundant now, and seems to be saving category removal to db))
m
Line 43: Line 43:
   <let name=including val=1 />
   <let name=including val=1 />
   <for table="qryW3_Titles_Catgs" where="(cl_to='Data/links') AND (page_namespace=0)" sort="page_title DESC" limit=$max name=pg hide>
   <for table="qryW3_Titles_Catgs" where="(cl_to='Data/links') AND (page_namespace=0)" sort="page_title DESC" limit=$max name=pg hide>
     <let name=pg_title val="@row.pg.page_title" />
     <let name=pg_title val="@row.page_title" />
     <let name=idx inc />
     <let name=idx inc />
     <if not flag=noLoad>
     <if not flag=noLoad>
Line 79: Line 79:


   <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.page_title" />
     <let name=idx inc />
     <let name=idx inc />
     <if not flag=noLoad>
     <if not flag=noLoad>
Line 172: Line 172:
   <for table="qryW3_Titles_Catgs" where="(cl_to='Data/blog/post')" sort="page_title DESC" limit=$max name=pg hide>
   <for table="qryW3_Titles_Catgs" where="(cl_to='Data/blog/post')" sort="page_title DESC" limit=$max name=pg hide>
     <let name=pg_nspace_code>{{ns:</let>
     <let name=pg_nspace_code>{{ns:</let>
     <let name=pg_nspace_code append val=@row.pg.page_namespace />
     <let name=pg_nspace_code append val=@row.page_namespace />
     <let name=pg_nspace_code append>}}</let>
     <let name=pg_nspace_code append>}}</let>
     <let name=pg_nspace copy=pg_nspace_code parse />
     <let name=pg_nspace copy=pg_nspace_code parse />
     <let name=pg_title val="@row.pg.page_title" />
     <let name=pg_title val="@row.page_title" />
     <let name=pg_name copy=pg_nspace />
     <let name=pg_name copy=pg_nspace />
     <let name=pg_name append>:</let>
     <let name=pg_name append>:</let>
Line 191: Line 191:
   <for table="qryW3_Titles_Catgs" where="(cl_to='Data/blog/post')" sort="page_title DESC" limit=$max name=pg hide>
   <for table="qryW3_Titles_Catgs" where="(cl_to='Data/blog/post')" sort="page_title DESC" limit=$max name=pg hide>
     <let name=pg_nspace_code>{{ns:</let>
     <let name=pg_nspace_code>{{ns:</let>
     <let name=pg_nspace_code append val=@row.pg.page_namespace />
     <let name=pg_nspace_code append val=@row.page_namespace />
     <let name=pg_nspace_code append>}}</let>
     <let name=pg_nspace_code append>}}</let>
     <let name=pg_nspace copy=pg_nspace_code parse />
     <let name=pg_nspace copy=pg_nspace_code parse />
     <let name=pg_title val="@row.pg.page_title" />
     <let name=pg_title val="@row.page_title" />
     <let name=pg_name copy=pg_nspace />
     <let name=pg_name copy=pg_nspace />
     <let name=pg_name append>:</let>
     <let name=pg_name append>:</let>

Revision as of 21:56, 29 April 2010