Hi, I am having a little trouble figuring out how to set this filter up properly.
I have a ditto call that searches and returns my results correctly without the filter, but no results with it.
[[Ditto? &tpl=`ditto-teacher-contact-info` &depth=`1` &parents=`94` &display=`all` &paginate=`0` &sortDir=`ASC` &sortBy=`pagetitle` &filter=`teacher-grade,[+pagetitle+],1` &debug=`1` &noResults=`<p>No teacher contact info found.</p>` ]]
However, when I add the filter, I am getting a no results found.
The teacher-grade tv is applied to documents in the ditto loop that I am searching. However, the "pagetitle" I want to compare or filter on is not the pagetitle of the ditto document loop, but the actual pagetitle of the page I am displaying these results on.
I have done this type of filter before, and have a working model on another site, yet for some reason, it doesnt seem to work. When I replace the &filter=`teacher-grade,[+pagetitle+],1` with &filter=`teacher-grade,Grade1,1` for testing purposes, it filters by the criteria I set. So why would my template variable value, which is pulled directly from the pagetitle, not match the pagetitle in ditto’s loop?
I hope this makes sense. If anyone is willing to log in and test, please let me know. I can provide access info.
Thanks
Anthony
[email protected]