Hi,
I want to output the values from a checkbox TV - any ideas how to do this. I only want to display the checked values.
My checkbox TV lists the resources of a certain parent. The user then selects multiple values using the checkbox. I then want the checked values to display as a list with links to the relevant resource.
Thanks for any help.
:Lisa
make sure the output of your TV is a commaseperated list of resource-ids.
should output something like that:
Then you can use this TV together with Ditto to create a list of links.
[!Ditto? &documents=`[*yourTV*]` &tpl=`yourTpl`!]
the chunk yourTpl with something like that:
<li>
<a href="[~[+id+]~]">[+pagetitle+]</a>
</li>
Thank you it works, but for some reason it is only showing 2 of the links - any ideas?
thanks
Lisa
if i just output [*mytv*] then i get the correct comma separated list e.g 2,45,67, but for some reason when i use the ditto with the tpl I only get 2 results displayed. thanks again