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 have several referinces to my node from entity reference fields inside paragraphs on other nodes (other CT also) and I'm looking for a way to get ALL entities refering TO my current node in twig. Everything I can find online, seems to deal with getting referenced entities FROM the current node.
I am doing tests to check, in the submit phase, if the node I am inserting is already present or not. The control can be on one or more fields.
I don't know if the solution I wrote is right or not. I tried with the title field and it works, it seems to work also with the entity reference (field_livello), it doesn't work for me with the data field and I didn't understand how to do it.
Here is the code in form_alter
$form['#validate'][] = 'liveContra_validate';
I installed Superfish version 8.x-1.4 in order to have megamenus. The site is currently running Bartik with no theme adjustments. The JS works great and there are a tons of settings. However, my menus look like this:
I don't like the down triangle (indicated that the menu item is expandable) superimposed on the text. I want it to appear after the text.