Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I am using the dxpr builder and dxpr starterkit theme.
I use slick slider and datatables. The slick slider and the datatables work ok in mobiles but they crash on desktop.
Fir an example if I navigate 3 or 4 times with the nav arrows of the slider the slider seems to lag during every slide change and the web site crashes.
The same happens with datatables when I click to add extra filters.
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?