- πΊπΈUnited States smustgrave
Have not tested but could https://www.drupal.org/project/conditional_fields β do this?
- Status changed to Active
about 1 year ago 2:46pm 5 October 2023 - π©πͺGermany Anybody Porta Westfalica
@smustgrave I don't think so. conditional_fields is mostly frontend (States API) related, isn't it?
- πΊπΈUnited States smustgrave
Eh think I was getting crossed with another issue on this module.
As far as these processors go Iβd be willing to host sub modules for the certain sitemap modules
- πΊπΈUnited States smustgrave
Question instead of a processor would some alter hook adding states make more sense?
- πΊπΈUnited States smustgrave
Okay so what do we think about this
We add the processors to the main module with a check like Search API Exclude Entity - Metatag
And that radio button is disabled if metatag isn't installed on the site.
- Status changed to Needs review
11 months ago 11:01pm 1 February 2024 - πΊπΈUnited States smustgrave
Actually couldn't figure out how to check a module in the processor so moved to a sub-module
Thoughts?
- π©πͺGermany Anybody Porta Westfalica
Great work @smustgrave! I think a submodule makes even more sense.
Code looks good and is a perfect template to solve the following similar functionalities:
- Exclude based on XML Sitemap β exclusion of the entity
- Exclude based on Simple Sitemap β exclusion of the entity
- Exclude based on field value β¨ Exclude entity based on a field value Postponed: needs infoAll solving different important use-cases and I think the code would be quite similar, so we're not far from there.
From my perspective, all these would serve well as separate submodules. So we have a wide range of typical exclusions afterwards.I asked @Grevil to try and review this one, when he has the time.
- π©πͺGermany Anybody Porta Westfalica
PS: Might make sense to show the effect of this module somewhere in the UI (for all these modules). For example adding a description to the "noindex" checkbox field of the metatag setting, if this module is enabled, so the person who uses it, is aware of that. Same should happen for the other cases in #17. I guess these should also be separate tasks, perhaps under a parent task?
- Status changed to Needs work
11 months ago 4:49pm 2 February 2024 - πΊπΈUnited States smustgrave
Created a meta for additional processors.
Also learned via slack that we don't need submodule but can use a hook or function to check if processor applies to this index.
- π©πͺGermany Anybody Porta Westfalica
@smustgrave I'd still say a module would be better, as it exposes the integration in the module list and shows that if you have module X + Y you can use this feature, which would need to be documented somewhere else instead.
So even if technically possible, I'd stay the submodules are the better choice! And they better decouple the modules transparently. But the maintainer decides, of course.
- Status changed to Needs review
11 months ago 5:56pm 2 February 2024 - πΊπΈUnited States smustgrave
How do we feel about merging this one and do a beta release for 3.0.x branch? See if it gets people interested.
-
smustgrave β
committed 6fd073b5 on 3.0.x
Issue #3264229 by smustgrave, Anybody, kevinquillen: Exclude based on...
-
smustgrave β
committed 6fd073b5 on 3.0.x
- πΊπΈUnited States smustgrave
So want to get a 3.0.x beta release out for D11 and have it include least one of these additional exclude tickets so merged this one.
- Status changed to Fixed
7 months ago 5:13pm 28 May 2024 Automatically closed - issue fixed for 2 weeks with no activity.
- π©πͺGermany Anybody Porta Westfalica
@smustgrave could we maybe have a new release with this?
- πΊπΈUnited States smustgrave
It should be in the beta2 release is it not working?
- π©πͺGermany Anybody Porta Westfalica
Thanks @smustgrave I'll check that, couldn't find it in the module list, sorry. Will report tomorrow!
- π©πͺGermany Anybody Porta Westfalica
@smustgrave my apologies! I had ^2 installed and didn't see it. Works great, sorry for the noise!