Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I'm interested in the possibility of domain access integration for this module. Are there any plans to make this happen? An option to configure settings per-domain would be fantastic.
If this isn't on the radar, do you have any suggestions for how to go about turning lexicon on and off for specific sites in custom code?
Many thanks!
Comments
Comment #1
Marty2081 CreditAttribution: Marty2081 commentedNo, there are no plans to develop support for domain access. I have no experience with the domain access module, but you might come a long way with just the ability to set the variables that contain the configuration settings on a per-domain basis?
Comment #2
eric.chenchao CreditAttribution: eric.chenchao commentedYes have different configuration per domain is a great idea.
Here is a quick example for lexion and domain access modules integration in case anyone who is interested in. It requires domain_variable module to set different variable per domain.
Put the following code in
mymodule.variable.inc
of your module
This example allows you to enable or disable lexicon filter per domain. You can put more configuration as you like.
How to use it
Make sure you have enabled domain variable, so go to its settings page and enable lexicon_mark_terms and other lexicon variables if you have defined in above mymodule_variable_info function. Go the variable settings page per domain and you will see the configuration page.