Does anyone know of any links to a tutorial or method as to how to link Ditto results shown on a page to input given on a dropdown list or an option?
I am building a list of items that are based upon the counties in the UK, so there are quite a number of them and it would be impractical to build separate pages with separate Ditto filters.
Each item would be an individual page/resource and I would attach a TV to them so that the website editor can select a country/state and other options to be associated with that page/resource. I would then like a page that displays all results, but at the top of the page options for the user to select, such as the county/State perhaps alongside other options and then have Ditto dynamically list results based upon those options.
I can’t seem to figure out a way to do this without having to build a separate page/resource for each country/state or option. I am also not sure how to pass a value given from a dropdown list or form to Ditto so that it can filter the results.
-
☆ A M B ☆
- 24,524 Posts
Use a snippet with $modx->runSnippet(’Ditto’, array(’filter’->’<filter-string’, ...));
and use a variable to set the filter criteria in the filter string.
-
☆ A M B ☆
- 24,524 Posts
No. As usual, the ... indicates "etc etc ... ". If you aren’t at all familiar with coding, then you’ll not be able to do this. Some things are simply too unusual or too complex to just be "out-of-the-box". With no programming skills, I’m afraid you’ll either need to get someone else to do it for you, or simply build sites within your skill set.
Hmm. Odd. The parse error seems to occur when I deactivate one of the TV’s that I had associated with the template.