Hi,
I am trying to use the @INHERIT as the default value of a TV to set categories on documents.
So far I have the following:
1) Ditto call:
[!Ditto? &parents=`52` &depth=`0` &dateSource=`createdon` &dateFormat=`%B, %Y` &orderBy=`createdon DESC` &display=`1` &start=`0` &filter=`isfolder,1,2` &tpl=`Ditto_Latest_Articles_tpl`!]
2) Ditto template:
<a href="[~[+id+]~]"><img src="[+articlethumbnail+]" alt="[+longtitle+]" /></a>
<h3><a href="[~[+id+]~]" title="[+longtitle+]">[+title:character_limit=`39`+]</a></h3>
<p class="artdate">[+articlecategory+] | [+date+]</p>
<p>[+introtext:character_limit=`132`+]</p>
<p><a href="[~[+id+]~]" title="Read [+title+]">Read more</a></p>
The [+articlecategory+] is the TV that I want to use to display the category below the title. However, it does not seem to be inheriting the value of the parent.
I have the following folder structure:
Articles
>>Category
>>>Year
>>>>Article
After setting up the TV with a default value of @INHERIT, I set a value manually on the Category, expecting the Article to inherit it - but it is not working. If I set a fixed default value, it works fine.
Thanks for your help!
Matt