Now I’ve tried this in so many ways I just have to give up for now and see if there is a way to do this.
(I use MODx 0.9.6.2)
I’m not shure if this is a Ditto quesion, a TV Datagrid question or a getField question, but here goes.
It’s a Contact Person-list and needs to be as simple to handle as possible, so I’m thinking a delimited list would work great.
I have a list consisting of Name, City, Telephone and they need to be displayed like a table, with three columns.
I actually also need every other row to have a class or style attached to it.
The list will be populated with a delimited list, so I made a TV for each column, with Text as Input and Delimited List as Widget
I created this chunk to hold the information
<tr>
<td>[+kontaktNamn+]</td>
<td>[+kontaktOrt+]</td>
<td>[+kontaktTel+]</td>
</tr>
and I use this chunk to call my ditto:
<table cellspacing="0" cellpadding="5" border="0" width="100%">
[[Ditto?documents=`3` &tpl=`KontaktTable`]]
</table>
And it does display the information but the delimiting is not working.
What am I doing wrong, aside from sitting at my computer 27 hours a day?
I tried with TV Datagrid aswell, but I don’t know how to fetch data from the different FIELDs the TVs are stored in.
I would love to be able to use the datagrid since it seems to function the exact way I want to populate my list, but reading around on the forum I’m slightly discuraged when it comes to the datagrid.
Here is what I’m trying to do:
http://bcfsormland.bro.org.se/kontaktpersoner.html
The first list is just an actual table created in the Rich Text Editor.
Below it is the Ditto trial and below that is a Datagrid I’m fiddling with.
As you can see the Ditto doesn’t do as I want, it just displays the , aswell.
I tried with GetField but I couldn’t even get it to work at all.
Also fiddled around with MakeTable but there I realized I was a bit stumped.
I might be able to figure MT out, but the I guess I need to learn some seriuos skills.
Is there ANY way to go about what I’m trying to do with my list?!?
The site is a mockup for local breastcancer helpsites in Sweden and I will make many more sites to come.
They will be handled by people who has virtually no other skills then writing text on a computer, so I really need it to be as easy as possible for them to handle it.
And I’m SO FOREVER grateful discovering MODx since it is by far the best CMS I have ever used.
(I actually migrate almost every site i admin to MODx because it makes my job sooo much easier)
Any help would be very much appreciated, and needed.
Cheers
Amrit