Skip to content

Conversation

@communiteq
Copy link
Contributor

After testing this further, I am convinced that this is the issue (and the solution)

The plugin reuses the for_input tag to designate tags from specific tag groups.

However, core expects that :for_input is used with a category, and if there are tag group restrictions it will honor them.

If :for_input is passed to core without a category, any tags that contain to a tag group that is used in ANY category as a restricted tag group, are not returned.

This makes the plugin unusable for assigning tags from restricted tag groups to a topic.

At the moment CW uses the tag picker, it's not clear to which category the topic is going to be in, so passing the category together with :for_input is not an option.

The only option left to make this work is to remove :for_input.

This behavior is the same in the "experimental form templates" functionality, that also ignores restrictions on tag groups.

The plugin reuses the for_input tag to designate tags from specific tag groups. However, core expects that :for_input is used with a category, and if there are tag group restrictions it will honor them. If :for_input is passed to core without a category, any tags that contain to a tag group that is used in ANY category as a restricted tag group, are not returned. This makes the plugin unusable for assigning tags from restricted tag groups to a topic. At the moment CW uses the tag picker, it's not clear to which category the topic is going to be in, so passing the category together with :for_input is not an option. The only option left to make this work is to remove :for_input. This behavior is the same in the "experimental form templates" functionality, that also ignores restrictions on tag groups.
@angusmcleod
Copy link
Member

angusmcleod commented Jul 4, 2025

Thanks Richard!

@angusmcleod angusmcleod merged commit e86e32d into paviliondev:main Jul 4, 2025
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants