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'm new to Drupal and developing a theme for a site on Drupal 8. I want to add a preprocess hook to my THEME.theme file that looks up taxonomy terms for nodes.
Any module available for adding CSS Class to form fields (in Edit Mode) ? I found field_formatter_class, fences, semantic_fields but only working for Display (View Mode).
I do NOT want to play with theme functions which are hard-coded and not user-friendly for clients.
I would like to get the domain url to my website in the mail template (use with a contact form).
I create a plugin to manage my mail system.
I add the $base_url variable in hook_mail : $variables['base_url'] = $base_url;
and get it on my template with {{ base_url }}
I'm pretty new to Drupal, i've started to create a theme from scratch using Drupal 7 (can't use 8 due to PHP limitations on my university webspace) for a university project. I've created a node.tpl.php file, which surrounds 'body' content in a div, however, when trying to use the in-built contact us form, as well as certain other modules. I've noticed it doesn't get surrounded by the specific div's i've created.
I'd really appreciate some help with the ubercart cart summary block. I'd been looking everywhere for tutorials but most of them are for the previous version of ubercart or just over my head.