Hi All,
I am building a new 1.0.5 Evo site. I am using Ditto to aggregate a blog/articles system in a container resource. I have the snippet call, template and css working great. My client now wants to also have the last few posts automatically appear on the HOME page (in addition to them appearing on the Articles page) with different styling. The CSS I can handle, but making Ditto do its thing on two different pages (Articles, Home) at the SAME TIME is a new venture.
This is what I have so far:
I have a Ditto call (via a chunk) that I use for the Articles page (Id=4) that looks like this:
<div id="dittoBlogBox">
[!Ditto? &parents=`4` &tpl=`dittoBlogTemplate` &display=`8` &paginate=`1` &paginateAlwaysShowLinks=`0` &dateFormat=`%b %d %Y` &tagData=`myTags` &tagDelimiter=`, ` &tagDocumentID=`11` &tplPaginatePage=`pageSplitter` &paginateSplitterCharacter=`|` &orderBy=`createdon DESC` !]
[+previous+] [+pages+] [+next+]
</div>
That works great.
I then found a thread that used making a TV called ShowOnHomepage as a TEXT FIELD with a default value of 0.
I then added this call to the HOME page:
[!Ditto? &depth=`0` &parents=`0` &filter=`ShowOnHomepage,1`!]
Now if I add pages to the Articles container the TV called ShowOnHomepage is there. If I swap the default value of 0 to a 1, I then get the article showing up on both the Articles resource and the Home page resource.
So, I am close but what the client wants is a system that AUTOMATICALLY presents say the last four articles on the HOME page resource that were added to the Articles resource.
How do I make this adjustment?
Thanks!!!