Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import story to another story in story.yml #52

Open
hog-seruj opened this issue Feb 9, 2024 · 0 comments
Open

Import story to another story in story.yml #52

hog-seruj opened this issue Feb 9, 2024 · 0 comments

Comments

@hog-seruj
Copy link

Is it possible in component.story.yml to Import another story from another component?

Problem:

We have a molecule component and must include a full story without changing to the organism story.

Current solution

If we have a region in the parent component where we should import twig code in the stories.yml.

Example:

      sponsor: |
        {% embed 'eitrm:logo-item' with {label: 'Sponsored by'} %}
          {% block image %}
            {% include 'dxp_theme:image' with {
              src: 'https://picsum.photos/108/24',
              alt: 'User image',
              title: 'User image'
            } only %}
          {% endblock %}
        {% endembed%}

In this case, I want to import only the story. Is it possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant