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.
Hi,
I have a site on a Drupal 8. I would like to include a reference to an entity in a contact form.
I explain myself:
On each page of my 'Product' content type, I have a contact form. In my content type I have a field called "field_reference". I would like to be able to create a field in my contact form that refers to this field but that the user does not have to fill in.
If my product "A" reference is: 123
In my form I would like to have:
There are multiple ways to achieve what I need but was wondering if anyone could explain the `Drupal` (Version 8) way of achieving this.
I have four very similar paragraphs:
1. Title, subtitle and HTML copy (1 column 3 rows, full page width)
2. Two columns, each column containing content as per point 1 above.
3. Three columns with point 1 content in each column.
4. No title or subtitle. List of unordered bullet points instead of the HTML copy
Is it possible to change Drupal8 admin password using Drush? Or fetch the password in any other way.
I have forgot the administrator password for the local Site. I can access the database and also able to access the user related table. As in my localhost there is no smtp server setup I am unable to get email using forget password.
If anyone have any idea to fetch the password or reset it, thus I could able to use the password. Please let me help with your valuable suggestions.
As the subject says: Simply, how in Drupal 8 do I get a file linked on a page to open in a new window/tab (target="_blank"). I don't see anything in the interface and can't find a module that seems to support this. Back with my Drupal 6 sites, i could hack a file and add the attribute. Can I modify a theme somehow to do this? Can someone give me a quick tutorial?
Site works fine with PHP 7.0 or 7.1, if I bump up to PHP 7.27 suddenly some admin pages like node/blahblah/edit don't render css and only show in the page source
The admin theme is Seven, most admin pages work just fine, but some seemingly cannot convert this token to actual CSS. If I revert to PHP 7.1 everything is a-ok.
In the theming forum I've been trying to build an array of block attributes using theme_preprocess_page() which makes sense in that I need to know what blocks, how many and position are in a region of a given page. I've offloaded the logic to a support function and I have a lovely array in $variables['page']['highlighted']. Except they must be brought into theme_preprocess_block() and the two functions seem to be working in parallel. Only to meet up in the final render.