From 9731b883c1fd77b11bd058f492383a94d796988d Mon Sep 17 00:00:00 2001 From: Dmitri Pisarev Date: Thu, 23 May 2019 16:51:59 +0300 Subject: [PATCH] !!! FEATURE: link back to footnote --- Resources/Private/Fusion/Root.fusion | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Resources/Private/Fusion/Root.fusion b/Resources/Private/Fusion/Root.fusion index 195db7d..0795908 100644 --- a/Resources/Private/Fusion/Root.fusion +++ b/Resources/Private/Fusion/Root.fusion @@ -13,16 +13,17 @@ prototype(Psmb.Footnote:FootnoteProcessor) < prototype(Neos.Fusion:Array) { @if.notInBackend = ${!documentNode.context.inBackend} pattern = ${'/(.*?)<\/span>/'} subject = ${value} - replacementRenderer = ${matches[2] + '' + iterator.cycle + ''} + replacementRenderer = ${matches[2] + '' + iterator.cycle + ''} } } footnotes = Neos.Fusion:Collection { - @process.wrap = ${value && '
    ' + value + '
'} + @if.live = ${node.context.workspaceName == 'live'} + @process.wrap = ${value && ''} collection = Psmb.Footnote:PregMatchAll { pattern = ${'/(.*?)<\/span>/'} subject = ${value} } itemName = 'item' - itemRenderer = ${'
  • ' + item[1] + '
  • '} + itemRenderer = ${'
  • ' + iterator.cycle + ' ' + item[1] + '
  • '} } }