We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Add-ons
Creating & Repurposing Content
Ditto
Search
Filter ditto to only list items with description and longtitle field entries
429 Posts
SandersDesign
Reply #1,
17 years, 1 month ago
I’d like to filter my ditto call to only show nodes with entries for description, longtitle and TV select option for "show in list".
How would I build a filter to detect that the description and longtitle contains data?
Martin Sanders
- Design & Web Development
4,205 Posts
dev_cw
Reply #2,
17 years, 1 month ago
Did you try with a filter like:
&filter=`pagetitle,,1|longtitle,,1`
I never tried this so cant say that it will work. You could also do it int he TPL by using PHx to hide items wich dont match the criteria.
http://ditto.modxcms.com/tutorials/basic_filtering.html
http://wiki.modxcms.com/index.php/PHx
[font=Verdana]Shane Sponagle
|
[wiki] Snippet Call Anatomy
|
MODx Developer Blog
|
[nettuts] Working With a Content Management Framework: MODx
Something is happening here, but you don't know what it is.
Do you, Mr. Jones? - [bob dylan]
429 Posts
SandersDesign
Reply #3,
17 years, 1 month ago
unfortunately it didn’t work
Martin Sanders
- Design & Web Development