Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Forums / Cotonti / Skins / Sort List Row Desc .tpl

How can i sort my list page by Desc

zboy812
#41590 2016-04-05 20:25

How can i sort my page.list.data.tpl ? 

I am aware how to do it with a link:  index.php?e=page&c=data&s=desc

how can i do this in my .tpl  thank you.

 

    <!-- BEGIN: LIST_ROW -->
	
<div   style="margin:10px; width:560px; float:left;">	

    <div   class="row-fluid">
      <div  class="span12" >
      <!-- ENDIF -->
        <h3>{LIST_ROW_SHORTTITLE}</h3>
        <!-- IF {LIST_ROW_DESC} --><p>{LIST_ROW_DESC}</p><!-- ENDIF -->
        <!-- IF {PHP.usr.isadmin} --><p>{LIST_ROW_ADMIN} ({LIST_ROW_COUNT})</p><!-- ENDIF -->
        <div>
          {LIST_ROW_TEXT_CUT}
          <!-- IF {LIST_ROW_TEXT_IS_CUT} --><br /><a href="{LIST_ROW_URL}" class="btn btn-small btn-primary">{PHP.L.ReadMore}</a><!-- ENDIF -->
        </div>
      </div><!-- /span12 -->
    </div><!-- /row-fluid -->
 </div>
    <!-- END: LIST_ROW -->