MeltingDog
MeltingDog

Reputation: 15456

ModX: Using Ditto with template variables

I am having a great deal of difficulty getting my head round displaying secveral resources on one page with Ditto. I cant seem to get TV's to show along with my content.

Heres how I have set it out:

The content shows fine but none of the TV's do. Can anyone point me in the right direction? thanks!

Upvotes: 0

Views: 1258

Answers (2)

einsteinsboi
einsteinsboi

Reputation: 46

I think the problem is in your syntax. You need to use a placeholder tag in the chunk for your TV:

Try this:

<div id="content"> [+articlename+] [+content+] </div>

Upvotes: 3

MeltingDog
MeltingDog

Reputation: 15456

I have found the answer: You are meant to use [+articlename+] for 'chunk TVs' rather then [*articlename*]. This is different to getResources.

Upvotes: 0

Related Questions