[SOLVED] Variable for current workspace in my HTML template


(Bernhard Witz) #1

Is there a variable out of the box I can use for something like <div class"{workspace}"> if I want to know if the page is rendered live or in the backend?


(Daniel Lienert) #2

Via Fusion:

${node.context.workspace.name}

(Bernhard Witz) #3

Thank you! That’s exactly what I was looking for.

Example.fusion
workspace = ${node.context.workspace.name}


(Max Strübing) #4

There is also: ${node.context.inBackend}