Closed (fixed)
Project:
Domain
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2021 at 11:40 UTC
Updated:
6 Nov 2025 at 14:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dqdCan you please elaborate more about what you expect or what was missing before? There is a sub module under domain access called domain access content. Did you have enabled it and is there something missing? I would like to read more in the issue description about what the attempt is here. Thanks for the report and the work on this patch.
Comment #3
netsliverYes,
I have activated the domain_(access)_content module, it is precisely on this one that I made the patch in order to create a condition plugin in order to use it in pathauto (or elsewhere) combine with the following patch https://www.drupal.org/project/pathauto/issues/3224916.
Example :
node type : article
pattern pathauto for domain 1 : article/[node:title]
pattern pathauto for domain 2 : news/[node:title]
Comment #4
netsliverPathauto patterns list:

Pattern actions:

Pathauto conditions list with the patch https://www.drupal.org/project/pathauto/issues/3224916:

Domain content condition with my patch:

Comment #5
netsliverSorry for french screeshot :)
Comment #6
dqdThanks for your awesome details! +1 Very helpful. Feel free to join us in the #domain channel on Drupal Slack for further discussion. THis would help to create momentum on the whole progress. I will try my best with my French in the channel :-)
Comment #7
netsliverAnother patch with different id because conflict with original domain condition
Comment #12
tibezh commentedI've prepared a MR with the Condition implementation where we don't have a node required (to have more flexibility).
Could smby to check, please?
Comment #14
mably commentedHi everybody, sounds like a neat feature I'm willing to merge but I want to test it first.
How can I test this new feature on a fresh Drupal 11 instance with domain modules installed?
I do not see the Domain condition on the pathauto pattern edit form.
Comment #15
tibezh commentedHey @mably
In my case, the condition plugin helps display page variants (via a Page Manager module) separately for specific domains.
I'm sure that other modules can use the same condition plugin in the same way.
Here is a screenshot - https://www.drupal.org/files/issues/2025-10-21/21_10_2025_00a0127ec239f0...
Comment #16
mably commented@tibezh not sure to understand why we need to combine an "active domain" condition with an "assigned domain" one.
It feels like we should rather use two different conditions. Mixing both seems like a very specific use case.
Comment #17
mably commentedAdded a new submodule to Domain Extras to allow better integration with the Page Manager module: #3553994: Integration with the page_manager module.
It allows to use the default current domain condition with the Page Manager module, we were missing the current domain context injection.
Comment #18
tibezh commentedHey @mably, I'm using 2.x version, so the patch/change is actual for me, but need to upgrade to 3.x
Also, thank you for the note about the Domain Extras module, will check.
I think we can close the issue as outtdated
Comment #19
mably commentedComment #20
mably commentedComment #22
mably commented