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 made a custom themed D8 site which is working great. I've made some custom content types so the people at my company can post jobs and internships.
These types have their own node twig files to make them custom where I add the fields in my custom layouts.
I made several contact forms with their own fields and email to send it to. My content editors can choose which form to add to the job page. The form is a referenced field to Contact Form and I output it as a Rendered Identity. --> My twig file can output it as {{ content.field_contact_formulier }}
I've never used Drupal before and have been given a task of simply adding some CSS classes to a View element on the page.
When I click on the little gear icon and select Edit I am taken to a 'Details' page where I see Title, Pane settings, Fields etc, but no indication of which .tpl file I would need to edit to change any HTML.
There is a Theme: Information link in the 'Other' section but this lists about 40 .tpl files, none of which seem to actually exist in my theme's directory.
Hello everyone. I want to have a contact form on my website. I intend to use Drupal's core contact module. Now by default Drupal places the form at /contact. I have built a custom theme with a custom layout, I want the form to appear at a page I created, /contactus in a specific region of the page.
Hi! I'm new to Drupal. Very new. I started using 7 last week, but decided to play with 8 on a new install to see if this was something we needed to use instead of 7.
I tried copying the Bartik theme which came pre-installed in 8. It works, except it seems to be missing a lot of the formatting, like the size boxes and navigation. The originally installed Bartik theme works fine, but the copy does not. I also tried installing other themes which were 8 compatible, and they're also missing styles and formatting. The only one which works is the original Bartik theme.
I generate a simple module "myformtest" with a simple Class form "MyformtestForm". I want override the default form template and pass to the template a custom array generated from my build method of form Class.
I followed this great tutorial . I added a "_theme_suggestions_alter" hook in my "myformtest.module", I also added the hook theme.
My "suggestion theme" is "form--myformtest-form.html.twig". Then in my module directory: