Skip to content

Allow authors to show/hide certain elements on deploy #435

Description

@jamos-tay

Follow up on discussion with @damithc on 19 Sep

The user may want to be able to show/hide certain elements from a page depending on the deploy configuration.

Cited use case:

When generating multiple sites with only slightly differing content, it might be easier to store all the information in one page, and allow the author to show/hide them. For example, if I have a Java tutorial page and a C# tutorial page, the text content can be exactly the same, only the code will differ:

# Print a line

<!-- Example syntax -->
<div class="require-flag --java">
    System.out.println("Hello world");
</div>
<div class="require-flag --Csharp">
    Console.WriteLine("Hello world");
</div>

The user can then deploy a Java or a C# version of the site without having two projects.

Metadata

Metadata

Assignees

No one assigned

    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