<![CDATA[ mSearch2 /mFilter2 - Grouping TV filters - My Forums]]> https://forums.modx.com/thread/?thread=104751 <![CDATA[mSearch2 /mFilter2 - Grouping TV filters]]> https://forums.modx.com/thread/104751/msearch2-mfilter2---grouping-tv-filters#dis-post-563348
I've managed to buy, install, and get it successfully working...
https://www.astrabridal.co.nz/testing-listing-with-filtering.html

The snippet call to get this is:
 [[!mFilter2?
     &parents=`670`
     &hideContainers=`true`
     &ajaxMode=`scroll`
     &filters=`
     parent:categories,
        tv|strapless,
        tv|straps,
        tv|sweetheart,
        tv|cap-sleeves,
        tv|bateau,
        tv|thin-straps,
        tv|low-back,
        tv|illusion-back,
        tv|keyhole-back,
        tv|ballgown,
        tv|princess,
        tv|mermaid,
        tv|modified-mermaid,
        tv|sheath,
        
    `
    &aliases=`
        parent:categories==designer
    `
    &tplOuter=`astra.tpl.mFilter2.outer`
    &tplFilter.outer.tv|strapless=`astra.tpl.mFilter2.filter.outer`
    &tplFilter.row.tv|strapless=`astra.tpl.mFilter2.filter.checkbox`
    &tplFilter.outer.tv|straps=`astra.tpl.mFilter2.filter.outer`
    &tplFilter.row.tv|straps=`astra.tpl.mFilter2.filter.checkbox`
    &tplFilter.outer.tv|sweetheart=`astra.tpl.mFilter2.filter.outer`
    &tplFilter.row.tv|sweetheart=`astra.tpl.mFilter2.filter.checkbox`
    &tplFilter.outer.tv|cap-sleeves=`astra.tpl.mFilter2.filter.outer`
    &tplFilter.row.tv|cap-sleeves=`astra.tpl.mFilter2.filter.checkbox`
    &tplFilter.outer.tv|bateau=`astra.tpl.mFilter2.filter.outer`
    &tplFilter.row.tv|bateau=`astra.tpl.mFilter2.filter.checkbox`
    &tplFilter.outer.tv|low-back=`astra.tpl.mFilter2.filter.outer`
    &tplFilter.row.tv|low-back=`astra.tpl.mFilter2.filter.checkbox`
    &tplFilter.outer.tv|thin-straps=`astra.tpl.mFilter2.filter.outer`
    &tplFilter.row.tv|thin-straps=`astra.tpl.mFilter2.filter.checkbox`
    &tplFilter.outer.tv|illusion-back=`astra.tpl.mFilter2.filter.outer`
    &tplFilter.row.tv|illusion-back=`astra.tpl.mFilter2.filter.checkbox`
    &tplFilter.outer.tv|keyhole-back=`astra.tpl.mFilter2.filter.outer`
    &tplFilter.row.tv|keyhole-back=`astra.tpl.mFilter2.filter.checkbox`
    &tplFilter.outer.tv|ballgown=`astra.tpl.mFilter2.filter.outer`
    &tplFilter.row.tv|ballgown=`astra.tpl.mFilter2.filter.checkbox`
        &tplFilter.outer.tv|princess=`astra.tpl.mFilter2.filter.outer`
    &tplFilter.row.tv|princess=`astra.tpl.mFilter2.filter.checkbox`
        &tplFilter.outer.tv|mermaid=`astra.tpl.mFilter2.filter.outer`
    &tplFilter.row.tv|mermaid=`astra.tpl.mFilter2.filter.checkbox`
        &tplFilter.outer.tv|modified-mermaid=`astra.tpl.mFilter2.filter.outer`
    &tplFilter.row.tv|modified-mermaid=`astra.tpl.mFilter2.filter.checkbox`
        &tplFilter.outer.tv|sheath=`astra.tpl.mFilter2.filter.outer`
&tplFilter.row.tv|sheath=`astra.tpl.mFilter2.filter.outer`
&tplFilter.outer.resource|parent=`astra2.tpl.mFilter2.filter.outer`
    &tplFilter.row.default=`astra2.tpl.mFilter2.filter.checkbox`
    &tpl=`astra.tpl.mSearch2.row`
     &includeTVs=`productdescription, productno, productimage, onsale, sale-image, price` 
    ]]



What I would like to do is be able to group some of the TV's together into a set of sorts... so I can visually do something similar to the category (Designers) list above it, but also be be able to have them as radio buttons so only one can be selected. However, in the templates they are individual checkboxes.

So, I want to have

Neckline:
Scoop/Wide Straps/Sweetheart/Sleeves/High Neck/Narrow Straps
Back:
Low Back /Illusion Back / Key Hole
Silhouette:
Ballgown/Small A-line/

I also want to add in price range - again, from checkboxes in the MOdx Templates.

Once I have it working i'll style it, but it's impressive thus far!

All of the instructions / references I can find seem to refer to mShop. This is a website that's been using modx since 2009 - it's got lots of historical bits and pieces that are not really the way to do things now, but no other option existed then. So no mShop... these gowns are just resources, but they are also not available for online purchase.

Modx Revolution Version 2.6.5

]]>
rachelmarama1 Dec 21, 2018, 10:29 PM https://forums.modx.com/thread/104751/msearch2-mfilter2---grouping-tv-filters#dis-post-563348