I’d like to use webpack for my scss and js in single directory components. How? Drupal reads css directly from the components folder and not from a dist folder.
Maybe i should create components in src/components and then copy all to the /components folder during the build?
Drupal 10, groups, that you can find on /admin/group
I need to add a classname to body tag on group full page on front-end.
I try to get value from "group" object (image attachment), but, it seems, the "values" array is protected.
I also try to use function getGroupType() that exist in \modules\contrib\group\src\Entity\Group.php and \modules\contrib\group\src\Entity\GroupInterface.php to get group type value, but, it seems, is not working.
I’m working on isolating a specific FlexSlider content item in the dxpr_theme.theme file and then displaying it in the Twig file, as shown below, specifically for users with the content_creator role.
Instead this line : $variables['content']['list'] = $view->render(); generates a 500 error
ok so I am working in Drupal 10, converting a D7 site. There is a view that has a field for 'user roles'... On the D7 site, when you add 'user: roles' as a field in the view, it gives you the option to "only display the selected roles", but this does not exist in the D10 version of Views for whatever reason. What I need seems very simple but I cannot figure out how to make this happen with Twig... basically what I am looking to have happen is this:
How can I make the CSS visible in a subtheme? I’ve tried everything, but I haven’t been able to figure it out. Does anyone have tips or could someone help me with this?