Closed pigeonflight closed 7 years ago
In manifest.cfg add an unthemed_edits switch
unthemed_edits
if set to 1 in the theme:parameters of the manifest.cfg file then no theme is applied in edit and settings modes.
[theme:parameters] portal_url = portal_state/portal_url unthemed_edits = string:0
The switch interacts with the following code:
<xsl:variable name="ploneui"> <xsl:if test="//body[contains(@class,'template-edit')]">1</xsl:if> <xsl:if test="//body[contains(@class,'template-atct_edit')]">1</xsl:if> <xsl:if test="//body[contains(@class,'template-personal-preferences')]">1</xsl:if> <xsl:if test="//section[@class='portlet portletNavigationTree portletSiteSetup']">1</xsl:if> <xsl:if test="//body[contains(@class,'template-configuration_registry')]">1</xsl:if> <xsl:if test="//body[contains(@class,'template-folder_contents')]">1</xsl:if> <xsl:if test="//body[contains(@class,'template-sharing')]">1</xsl:if> <xsl:if test="//body[contains(@class,'template-author')]">1</xsl:if> </xsl:variable> <xsl:variable name="ploneuibool" select="contains($ploneui,'1')"/> <xsl:variable name="unthemedbool" select="contains($unthemed_edits,'1')"/> <rules if="$unthemedbool"> <notheme if="$ploneuibool"/> </rules>
This is from Plone 4.x which we're not actively developing for any more so I'm closing this.
In manifest.cfg add an
unthemed_edits
switchif set to 1 in the theme:parameters of the manifest.cfg file then no theme is applied in edit and settings modes.
The switch interacts with the following code: