HiI've checked the mod_k2 and the com_k2 templates and see in general how their layout code works...I mean, changing the layout would mean to change the HTML/PHP etc.Is obvious finding the code lines where a field is echoed to the browser and such.Up to here, so far, all fine.But, if in a module, which its default template has a buckle for the amount of items specified on the backend(say 6 items)..., I wanted to show the 1rst item with certain format, then the next 2 with other format, the rest with other format, and even different fields shown and such.I suppose basically I'm gonna need to get rid of the buckle and "hard code" each record/item for displaying right?So, how am I going to tell the DataBase to move to the next record, or start again, etc.?, well, actually I suspect there's no need to access the DB but more of accessing the variables / DB datasets already available.This way I will be able to layout any items any way I want right?thank you very muchP.S. I already tried to display an item by copying some item code BEFORE the foreach buckle but it didn't showed the first item of the dataset, just the hard coded HTML info, and then followed the normal output of the buckled items.I suspect I needed something from that condition line on the beginning of the foreach buckle:<?php foreach ($items as $key=>$item?): ?>Not sure what this line is exactly doing but I guess I will need to do something similar in order to access the Data.
16 years 6 months ago #82602