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 building a custom Drupal theme and wondering if there is a way to get the modal windows to use the default admin theme. I'm using the Layout builder module with a custom block that uses the Media Library module and it uses jQuery UI classes.
This is also for the modal content like the media modal.
I have added a taxonomy list and created an entity reference field within that taxonomy list under "manage fields". The idea was to set the default value of the field to an existing node. Now in the twig I've been trying to retrieve the url. By default the taxonomy name selected is out put {{ content.field_db_product_type }} but my field name for the entity reference is field_product_type_link which should have the url to the content the field is populating. I just cannot get the field constructed correctly to allow me to get some of the values.
I have a filter bar where I want to show the 'Apply' button on both bottom and top. I changed the .module file to add the below code. I basically changed the weight of the 'Action' button. But this shows the button only on the top. Is there a way to make it appear in the bottom?
function project_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
if ($form['#id'] == 'views-exposed-form-search-page') {
$form['actions']['#weight'] = -99;
}
}
Drupal 8.8.0 site, when I run composer outdated, I get a list of modules whose versions are not current. However, when I run Status Report from within site admin, I see those same modules with current versions.
For example:
composer outdated | grep drupal/admin_
drupal/admin_toolbar 1.27.0 2.0.0 Provides a drop-down menu interface t...
However, the Status Report (or modules list) invoked from within drupal admin shows the Admin Toolbar module as Version: 8.x-2.0