Skip to content

Support for "hidden" templates in javascript modules #573

@romain-pm

Description

@romain-pm

Context / Problem to solve / Design

In Java modules, it is possible to declare a template as "hidden". Hidden templates allow to create pages with this template programmatically or via import but doesn't list the template as available for users. It is needed to finally close the MFA initiative.

Story

As a developer
I want to create hidden templates in jsm

Testable scenarios

Setup
Given I'm writing a new JSM template

Case 1
When I declare a template

jahiaComponent(
  {
    nodeType: "jnt:page",
    name: "home",
    displayName: "Home page",
    componentType: "template",
hiddent: true
  }

Then my template isn't listed in the choice for the user in jcontent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions