plone - How to move a portlet into content's #content area? -
i modify content on fly can later feed modified version theme's content slot. usecase positioning calendar portlet inside collective.cover row/column/cell.
here's tried:
<replace css:content="#content .row:nth-child(2) .cell:nth-child(2) .tile.tile-edge"> <!-- these work (meaning levels above current selection can copied) --> <xsl:copy-of select="." /> <xsl:copy-of select="../.." /> <xsl:copy-of select="/" /> <!-- however, neither of these --> <xsl:copy-of css:select=".portletcalendar:first-child" /> <xsl:copy-of select="//div[contains(concat(' ', normalize-space(@class), ' '), ' portletcalendar ')]" /> <xsl:copy-of select="//div[@id='portal-personaltools']" /> </replace>
it may problem having relying on diazo's facility translating css selectors in xsl commands. works if target selected node or child of it. so, replace xpath selector:
<!-- replace 1 part of content --> <replace css:content="#content .row:nth-child(2) .cell:nth-child(2) .tile.tile-edge"> <xsl:copy-of select="//dl[@class='portlet portletcalendar']" /> <xsl:apply-templates mode="raw" /> </replace> <!-- make sure doesn't show in 2 places --> <drop content="//dl[@class='portlet portletcalendar']" />
Comments
Post a Comment