Extending the styleguide

Created on 13 January 2017, over 8 years ago
Updated 28 April 2025, 16 days ago

Hi,

first of all - thanks for this promising module. I am theoretically a big fan of living styleguides and currently I am searching for good ways to implement such.

To me it seems that this module works perfect to define common elements in Drupal. First question: the function hook_styleguide() takes a "theme" key for each element where theme functions can be provided. Is it possible to define custom template files as well? Esspecially in Drupal 8 there is so much theming moving into Twig templates.

Another question: node tyes with different view modes, some field in context of a special node type/ node view mode or whole Paragrpaphs elements as well as custom template files defined in my custom modules are examples of elements, which might follow specific design rules as well. So is it possible to include for example a field or a node as example into the styleguide in any way?

Best,
Tobias

πŸ’¬ Support request
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany tobiberlin Berlin, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States dcam

    This sounds more like a support request than a feature request. And it was answered. So I'm closing it.

Production build 0.71.5 2024