@massimo-la-terra said in select products with a certain category (tag):
thanks for the answer, sorry for my translated English, in practice with a click I would like to display only the products of the Subcategory> SALUMERIA </Subcategory>
Notepad++ is an editor, not an XML Presentation filter, so it will never give you exactly that. Its job is to make it easy to edit the raw text as a whole, not easy to just see filter the sub-categories you want
My first set of instructions will allow you to hide everything, and then you just do the search (as described above) to find the next occurrence of that; after you’ve cycled through enough “Find Next”, you will have shown all the product groups with the subcategory SALUMERIA. Problem solved.
For example,
start with <Product> <irrelvant>...</irrelvant> <Subcategory>SALUMERIA</Subcategory> <irrelvant>...</irrelvant> </Product> <Product> <irrelvant>...</irrelvant> <Subcategory>OTHER</Subcategory> <irrelvant>...</irrelvant> </Product> <Product> <irrelvant>...</irrelvant> <Subcategory>SALUMERIA</Subcategory> <irrelvant>...</irrelvant> </Product> <Product> <irrelvant>...</irrelvant> <Subcategory>OTHER</Subcategory> <irrelvant>...</irrelvant> </Product>So there are two products in the SALUMERIA subcategory, and two that aren’t.
2. Hit Alt+0 to hide everything
5e748307-197b-4df7-9b0c-02556eafd883-image.png
3. FIND = <Subcategory>SALUMERIA</Subcategory>
86d57c15-5f0a-42bc-b00b-2cc2dc9e50a1-image.png
4. FIND NEXT will show the second one as well:
31a7eb58-9bbd-403a-89b5-8be4b4b45ed4-image.png
5. Repeat FIND NEXT until they have all been revealed.
It’s not a single click, but it doesn’t take all that long.