Skip to content

How to tell if in library preview mode from Twig template? #339

@peterhebert

Description

@peterhebert

I am using the submodule for the patern library, and was wondering how I would be able to do a conditional to test if in preview display in the pattern library. I'd like to use custom markup here, beyond what the 'preview' for a certain field.

Is there a way to determine this? a boolean variable for preview perhaps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions