Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.

Referencing variants #2

Open
lammensj opened this issue Dec 5, 2018 · 2 comments
Open

Referencing variants #2

lammensj opened this issue Dec 5, 2018 · 2 comments
Assignees

Comments

@lammensj
Copy link
Contributor

lammensj commented Dec 5, 2018

Hi!

I've implemented this module in a Drupal 8 site, but I'm stuck at referencing variants inside Fractal twig files. When loading the site, the references work because they use the Twig loader of this module. However... When using the Fractal builder in order to generate the styleguide html files, the referenced variants can not be found because of the handle-mismatch.

Any suggestions?

@lammensj
Copy link
Contributor Author

lammensj commented Dec 6, 2018

Figured it out! I did not include WondrousLLC/fractal-twig-drupal-adapter as Twig adapter in the fractal config. This was the missing piece.

However... ;-) I'm going to find a solution for referencing variants of a Fractal component in a Drupal template. This will be the final missing piece of this module. When complete, I will open a merge request from my fork.

@yobottehg
Copy link
Member

thank you @lammensj We'll have a look later but already looking promising

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

No branches or pull requests

3 participants