3

後で変更したバージョンをテーマのコンテンツ スロットにフィードできるように、その場でコンテンツを変更したいと考えています。ユースケースは、collective.cover の行/列/セル内にカレンダー ポートレットを配置しています。

これが私が試したことです:

<replace css:content="#content .row:nth-child(2) .cell:nth-child(2) .tile.tile-edge">

  <!-- These work (meaning levels above current selection CAN be copied) -->
  <xsl:copy-of select="." />
  <xsl:copy-of select="../.." />
  <xsl:copy-of select="/" />

  <!-- However, neither of these do -->
  <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>
4

1 に答える 1