Replace (instead of appending) HeadContent section from module #4614
-
I'm implementing a theme that has support to configure several SEO options with site and page theme settings. Therefore, the correspondent meta tags are added to the HeadContent with the ThemeBase method. However, there are some modules that need to override the default SEO tags added with their specific ones. For example, the Oqtane Blog module uses AddHeadContent for its meta tags. In this case, you end up with duplicated seo meta tags, the ones from the theme and the ones from the module, as both of them are just appended to the site HeadContent. Is there any way to make the HeadContent behave as a dictionary (or similar) so that we can replace content by key instead of just appending? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@mdmontesinos this was explored previously but there are a number of significant challenges:
|
Beta Was this translation helpful? Give feedback.
@mdmontesinos this was explored previously but there are a number of significant challenges: