[TREASURY] Arranging by date

Vince Mercer
Joined: 28 Aug 2009

[TREASURY] Arranging by date

Posted:15 Dec 2009 (20:11 UTC)
Here is the current code for the treasury's module, mod_uploads.tpl

What do I add and change to make it arrange chronologically?


<?php
  1
: {foreach from=$modItems item=modItem}
  
2: <li class="{cycle values='odd,even'} item">
  
3: <a href="{$modItem->mInfo.display_url}">
  
4: {if $maxlen gt 0}
  
5: {$modItem->mInfo.title|escape|truncate:$maxlen:"...":true}
  
6: {else}
  
7: {$modItem->mInfo.title|escape}
  
8: {/if}
  
9: </a>
 
10: {if $module_params.description}
 
11: {if $maxlendesc gt 0}
 
12: {$modItem->mInfo.data|escape|truncate:$maxlendesc:"...":true}
 
13: {else}
 
14: {$modItem->mInfo.data|escape}
 
15: {/if}
 
16: {/if}
 
17: </li>
 
18: {/foreach}
?>

Vince Mercer
Joined: 28 Aug 2009

Re: [TREASURY] Arranging by date

Posted:15 Jan 2010 (22:52 UTC)
When you add the module using the "Manage Layouts" from the control panel, put these parameters: "sort_mode=created"

Wow, I answered my own question, LOL. (maybe I should be a volunteer support crew now).
  Page 1 of 1  1