TAMAN Posted March 15, 2016 Share Posted March 15, 2016 Im trying to make a 2 column first featured template using same method as pre installed templates this is the codes for example index {{if count($articles)}} {{foreach $articles as $id => $record}} {{if $id == 0}} <div class='ipsGrid ipsGrid_collapsePhone'> {template="entry" app="cms" location="database" group="twocolumns" params="$record, $database, 0"} </div> {{else}} {{if $id % 2}} <div class='ipsGrid ipsGrid_collapsePhone'> {{endif}} {template="entry" app="cms" location="database" group="twocolumns" params="$record, $database, $id"} {{if $id % 2 == 0}} </div> {{endif}} {{endif}} {{endforeach}} {{endif}} entry <div class='{{if $id}}ipsGrid_span6{{else}}ipsGrid_span12{{endif}}'> <article> ............ </article> </div> looking to the codes everything looks okay this ipsGrid_span6 should be for $id one in index template but it does not work it always gives ipsGrid_span12 for both template in index :/ i have even tried to copy paste the same codes from the "category_2_column_first_featured" template to my new created template it just does not work why it works with pre installed ones and not when we create a new one?? Link to comment Share on other sites More sharing options...
TAMAN Posted March 16, 2016 Author Share Posted March 16, 2016 mmbump Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.