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 trying to hide a field 'field_company_notice' for all roles except the 'Editor' role from being able to add/edit this field. I know I could use 'Field Permissions module but I only need this for 1 field (same field for 5 content types).
In my administrator theme .theme Drupal 9 file I added:
I used "circular_chart-7.x-1.0" module on Drupal 7.82.
The circular chart works very well on Bartik theme, Bootstrap 7.x-3.15 theme and built-in theme of Drupal7 but it doesn't work in Drupal Bootstrap sub-theme. [.circles-wrp and .circles-text class doesn't display on node page and view block).
How can I solve this problem. Please help me. Thank you.
I have a views tpl where I set a variable but nomatter what I do, I can't get the output as a string ... even-though the drupal dump is indicating the value is set before AND after the output.
Im using {{ drupal_menu('main', 1, 5, TRUE) }} to render main menu inside an individual template, and only suggests menu--main.html.twig and menu.html.twig