Here is what I have going on.
I have a TV called ResourcePhoto, it holds a photo, it’s TV type is Image.
it works fine in the document,
Ditto doesn’t seem to pick it up. I went though the other Ditto TV thread but still no luck.
Here are my code samples.
// Chunk for Ditto//
[*ResourcePhoto*]<a href="[~[+id+]~]">[+summary+]</a>
[+link+]
//Ditto Call//
[!Ditto? &startID=`2` &tagData=`ResourcePhoto`&summarize=`1` &displayArchive=`0` &multiLevel=1 & &paginate=`0` &truncChars=`1`&truncLen=`350` &paginateAlwaysShowLinks=`0` &tpl=`top_teaser`!]
and again the TV is set to be an image. Any help would rock.
thanks for the reply, I’ll try it. and Post my results.
Total supposed to be returned: 1
Count of total in db: 8
Sort by (sortBy): createdon
Sort direction (sortDir): DESC
Using the new MODx 0.9.2.1 API
TVs: ResourcePhoto
Start at 0 and stop at 1 out of 8
Document Data for "Over The Hill - Jan 8"
[+id+] => 144
[+type+] => document
[+contentType+] => text/html
[+pagetitle+] => Over The Hill - Jan 8
[+longtitle+] => Over The Hill
[+description+] =>
[+alias+] => healthy-living-jan-8
[+link_attributes+] =>
[+published+] => 1
[+pub_date+] => 0
[+unpub_date+] => 0
[+parent+] => 61
[+isfolder+] => 0
[+introtext+] =>
[+richtext+] => 1
[+template+] => 7
[+menuindex+] => 0
[+searchable+] => 1
[+cacheable+] => 1
[+createdby+] => 1
[+createdon+] => 1168230071
[+editedby+] => 1
[+editedon+] => 1168316676
[+deleted+] => 0
[+deletedon+] => 0
[+deletedby+] => 0
[+publishedon+] => 1168230071
[+publishedby+] => 1
[+menutitle+] =>
[+donthit+] => 0
[+haskeywords+] => 0
[+hasmetatags+] => 0
[+privateweb+] => 0
[+privatemgr+] => 0
[+content_dispo+] => 0
[+hidemenu+] => 0
[+title+] => Over The Hill - Jan 8
[+summary+] => We’ve all heard the phrase “Over the Hill”. We usually start to get these cards at our 40th birthday. Why at age 40 do we begin the supposed decent, and is there anything we can do to stop it?
It’s true.
[+link+] => <a href="topics/january-2007/healthy-living/healthy-living-jan-8">Read more...</a>
[+author+] => Built-in Administration account
[+date+] => 07-Jan-07 23:21
tpl = LastRow -> [+tvResourcePhoto+]<a href="[~[+id+]~]">[+summary+]</a> [+link+]
Here is my Debug output, still no dice
sometimes you’re you best teacher.
using "tv" as a prefex for the tvs in ditto was confusing as it seems to be a rule of thumb to name your TV’s as such like tvResourcePhoto
so to get it to work I had to use [+tvtvResourcePhoto+]. I only posted this because I would hate for someone else to have the same issue.