Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I can't find the right hook to override the Entity Reference field settings on Edit Entity form, using Views Entity Reference, regarding to Views arguments, before the Views is executed for loading available items. Can anybody suggest me the right method?
As example on Default Drupal setup, on "Basic page" node I have the "Select list" entity reference to "Article" Node (which have "Tags" field), and have configured in it the Entity Reference Views that filter articles, with a single argument (Tags id = 1), like this:
On yoursite/admin/config/content/formats (D 9.3.5) you define the order of your text formats and editors. In my case, it is like this:
1) php
2) plain text
3) basic html
etc.
So, when I add new text, the text format automatically selected is "php", no matter what content type. Yet, depending on the content type, it makes more sense to have a different text format on top. Is there a way to do this? For instance, the content type "biography" could have "basic html" on top, whereas the content type "code_snippet" could have text format PHP on top.
I'm Converting Drupal 7 theme to Drupal 8 and in D7 I'm using my_theme_checkbox($variables) function for checkbox alteration but this function is not working in D8.
I can not set the web folder as root from server, so I created an htaccess in the root folder:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ /web/$1 [L]
The home page is loaded, with some JS error in console, e icons not loaded.
If I try to navigate the site I've 404, if I try to open the login page it redirects to home page.