‘Published' Elements Mode?

Reference this post - Conditional Statements

The documentation states that "Elements gives you access to the current RapidWeaver mode inside of conditional statements”.

In the documentation the modes are not specifically listed, though edit and preview are shown in examples. Is there a mode for published?

The following will work for you.

@if(edit)   
    Visible in edit mode (inside Elements)
@elseif(preview)   
    Visible in local preview (in Safari).
@else
  Visible when Published.
@endif
1 Like