Hi all, forgive me having rummaged, I can’t find an answer to this, so is there an out of the box method to populate a data grid from ditto? The idea would be to create an user sortable element, i.e. user clicks on header and data is sorted by that criteria, click on another and the grid is resorted.
Regards
PS Might I respectfully suggest that the default format, in language file, would benefit from a [ ] before the ’by’ to maintain formatting.
Wow, this is just great! I really need this. Thanks.
I think, thererfor I am! But what I am, and why...?
Here is a working example on the sorting-function. The table loads a little slow, specially in MSIE, but that’s because the Table mouseover script, not the sorting script.
I think, thererfor I am! But what I am, and why...?
did you do that using the above script? How do you get the images there?
Yes, I used the scripts in the example.
The images is somhow hardcoded by a spesific namesystem in my image folder hierarchy. The Ditto-template is like this:
<tr class="alt">
<td><a href="[~[+id+]~]">[+pagetitle+]</td>
<td>[+norwegian+]</td>
<td class="imageCell" width="75px"><img class="listImgLeft" src="assets/images/species/[+description+]/[+description+]_close_mini.jpg" /><img src="assets/images/species/[+description+]/[+description+]_hole_mini.jpg" /></a>
</td>
</tr>
I think, thererfor I am! But what I am, and why...?
@Sylvaticus:
That’s almost exactly how I set it up too. My Tpl is very similar, but my list is paginated and works across the pagination too. Your implementation looks good BTW. Simple wasn’t it? All you have to do is change a few id’s here and there and that’s it. Good use of the script.
Yes, it was wery simple, and I wery glad you shared the solution with us. Thanks again!
I think, thererfor I am! But what I am, and why...?
Well, not really my solution. I was just lucky enough to stumble upon a solution that I could use. This is exactly why I love opensource - the community can grow together. I learn new things everyday!
Quote from: cbaone at May 23, 2008, 10:28 AM
Well, not really my solution.
Thats OK, and I putted a link back to the original in my template.
I think, thererfor I am! But what I am, and why...?