Top new questions this week:
|
I have created a project on drupal.org. The repository for this project is empty message is shown on the repository page. I used to get the Git push instructions on previous days. I tried to clone …
|
For a mega menu, I’m trying to add theme suggestions to every parent menu item / menu link depending on the chosen view mode for that menu item. I’m aware of the …
|
Can someone please help with TMGMT (8.x-1.14) and Paragraphs (8.x-1.15) modules working together in Drupal 9.4.8 setup. There is a content type having a Paragraph entity reference revision field. …
|
Greatest hits from previous weeks:
|
node_load((int) $nid) loads a fully-populated node entity. $node->title->value gets the title, but how do I access field values in Drupal 8?
|
Is there a way to silence all PHP errors, warnings and notices in Drupal? They are usefull on the devel site but they are a big security risk, and make the site look bad on live. I know on Drupal 6 …
|
I am trying to theme a node with tpl and when i tried to print image , I cant find image path like in d6.. which function i have to call to properly output image .. I mean something like theme(”)? …
|
I have a question about getting a path to an image in a Twig template. The image is not assigned to a field or something. Just a static image which is stored in “MYTHEME/image/icon/my-icon.png”. In …
|
I am transitioning from ‘old school’ PHP MySQL methods of using mysql_fetch_array(), etc. and I am trying to be more Drupally by using the Database API in my modules. I simply want to return and …
|
How can I add a custom form submission handler? I tried adding $form[‘#submit’][] = ‘mymodule_form_submit’; or $form[‘actions’][‘submit’][‘#submit’][] = ‘mymodule_form_submit’; to hook_form_alter(). …
|
A lot of our stuff has uris formatted like site/taxonomy/XX, where XX is an integer. I found a lot of questions like “how to get the TID from the name?”, but I’d like to get the name from the TID. I’…
|