Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Would it be possible to use this module to get through panels different meta tags on different domains please?
Thanks a lot in advance for your reply!
Greetings, Martijn
Comments
Comment #1
Miszel CreditAttribution: Miszel commentedI suppose so but it is difficult to say how without knowing more details about your set up. I guess, you would need to be able to trigger context on a specific domain. Here are some modules that you could look at and possibly use one of them in conjunction with context metatags:
http://drupal.org/project/context_domain
http://drupal.org/project/domaincontext
Comment #2
Summit CreditAttribution: Summit commentedHi My setup is the following.
I have one codebase and more than one domain running through domain_access.
What I would like is for starters to get different meta tags (title, description, keywords) on the different homepages.
The homepages are panels. The homepages for both domains are the same panels, but the content of the panels is based on views which have nodes with filter for this domain.
Is this enough setup information please? Will this module help with setting the meta tags right? Does it use tokens, so I can variabelize my information?
Thanks a lot for your quick reply!
Greetings, Martijn
Comment #3
Miszel CreditAttribution: Miszel commentedYes, context metadata supports tokens. I reckon you will need two conditions to trigger the right context - the domain and the path () Try to use the domain context module to trigger a context on a specific domain. Then use the context matadata module to add the meta tags. I have never tried but it should work. Please let us know if it works for you.
Comment #4
Summit CreditAttribution: Summit commentedHi,
I am trying to build this context.
1) I made a context with domain context which says (Set this context when viewing a node depending on its domains).. I do not know which reaction to set?
2) I do not see the context meta data anywhere in the conditions list?
Can you help please? It would be great if we got this working. Until now there is no working solution to get meta tags on different domains!
Greetings, Martijn
Comment #5
Miszel CreditAttribution: Miszel commentedI haven't done it before but I think that you should set two context conditions:
1) A domain condition that you set to the domain you choose (the condition that you say you are trying)
2) A path condition set to
<front>
Those two conditions will create a context that will be triggered on the front page of your chosen domain. Now you need to set up a reaction which will set your meta tags on the targetted front page. This is where you use the context metadata module. Choose "Meta Data" from the reaction dropdown.
Please note that Context Metadata does not define any conditions. It only provides a reaction that sets the meta data when context is triggered.
Comment #6
Miszel CreditAttribution: Miszel commentedBTW, please use the dev version of the Context Metadata module.
Comment #7
Summit CreditAttribution: Summit commentedHi,
I build a context with both conditions 1) and 2) , see underneath the export.
But I do not see the "Meta Data" in the reaction dropdown....I use the latest .dev of the module.
Export Context:
Thanks again for your quick reaction.
greetings, Martijn
Comment #8
Miszel CreditAttribution: Miszel commentedClear all cache. Then you should see Meta Data in the dropdown.
Now you can use 7.x-1.2 version.
Comment #9
Miszel CreditAttribution: Miszel commentedComment #10
Summit CreditAttribution: Summit commentedHi, you where right about the cache, thanks!
It is working now, with tokens!
Greetings and thanks for your help with this!
Martijn
Comment #11
Miszel CreditAttribution: Miszel commentedCool, no problem. I am closing this issue.