Displaying examples for slots

Created on 27 November 2023, about 1 year ago

Problem/Motivation

Thanks for this module. I'm currently looking for a way to display examples for slots, but I cannot find any documentation regarding this.
Is it something currently supported by the module?

💬 Support request
Status

Active

Version

1.0

Component

Documentation

Created by

🇦🇺Australia elgandoz Canberra

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

Comments & Activities

  • Issue created by @elgandoz
  • 🇫🇷France Quentin Harelle

    At the moment I did not try to use slots in the .components.yml for the moment, but you should be able to access the data in your component anyway in theory.

    I'll try to look into it when I'll have the time.

  • 🇦🇺Australia elgandoz Canberra

    I can access the examples of the slots, eg: $pluginDefinition['slots'][$slot_name]['examples'][0], but ATM I don't know how to render twig blocks in dab/src/Controller/DabComponentController.php: $markup = $this->twig->renderInline($twigTemplate, $variables);

Production build 0.71.5 2024