Custom HTML in Viewport
Hi,
I have a Scroll Viewport theme, that does not show the Custom HTML that I configured in the Confluence Administration.
What I tried so far is to add
$!settingsManager.globalSettings.customHtmlSettings.beforeHeadEnd
to include-htmlhead.vm
However my Custom HTML is still not shown.
Does anyone know, how I can get the $settingsManager in a velocity file? Or is there another way to show the Custom HTML from the Confluence Administration?
-
Official comment
Hi,
$settingsManager is not available in Scroll Viewport's Velocity context. See https://help.k15t.com/scroll-viewport/latest/template-contexts-125708774.html for more information on the individual contexts and their contents.
We don't provide placeholders for accessing the custom HTML snippets from the global Confluence administration section.
May I ask why don't copy the custom HTML into your viewport theme? In order to avoid duplicating it?
The only solution I can think of right now is creating a custom placeholder for accessing the custom HTML. See https://help.k15t.com/scroll-viewport/latest/develop-pluggable-placeholders-165939198.html for instructions how to do that.
Cheers,
JensComment actions
Please sign in to leave a comment.
Comments
1 comment