Skip to content

Nested subtypes do not render without root pattern #1056

@illepic

Description

@illepic

I am using Pattern Lab Node (see screenshot) on Mac, with Node v10.16.3, using the twig php renderer.

image

Expected Behavior

We nest our non-underscore template files in a demo/ folder, a la:

image

Up until the recent uikit update, the demo/buttons.twig pattern would render just fine in the UI at atoms -> button -> buttons.

Actual Behavior

No navigation entries are created for button:

image

This "Button" nav item links to non-existent rendered html file.

Steps to Reproduce

Create a pattern such that the renderable template file is in a nested folder only, ie:

atoms
  button
    _button.twig
    demo
      buttons.twig

"Buttons" will not be available in the navigation UI.

Note: adding a dummy twig file a the root of the pattern results in proper rendering of the navigation. This is how we're circumventing this for now.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions