


Unique Drupal City map created
In order to promote Drupal, we created the unique Drupal City map. Every name there is a real Drupal module, theme, or distribution name. This map shows how fabulous Drupal is, and tells people about its modules. Every object is clickable and leads to the... read more
FREE – Drupal 8 Essential Training
Hi Potential Web Developers, I have spent more than year creating these two tutorial series that will teach you Drupal CMS step by step. No programming skill is required. The course is offered FREE for students enrolled by 10th January. Pass it on to your friends... read more
How can I get the current node view mode and add to block template suggestion?
In my code, I need to get the current view mode of the node to be able to pass it to be used as a block template suggestion. The function I have set up is able to grab all available view modes, but I just want the current one. Possibly a condition that I haven’t... read more
How to get the language code when a language name is given?
We are creating nodes programmatically on submitting a form. The language of a node is an input value in the form. How can I get the langcode, when I have the Language name? For example, user may type English. So i should convert it to “en” If there an... read more
How to display my array values in nested array of type stdClass Object
i am having trouble figuring out how to render my array fields values for specific fields. So far i’ve managed to query my db and collect the node values and save it to my cart of items. However, i am unsure how to echo these into a table for users to view in... read more
main menu link as language switcher
I have 2 language and these situation: main menu -> lang1 -> link to www.foo.com/ main menu -> lang2 -> link to www.foo.com/en All sites when switch manually on browser the language, But my main menu link not work. I have no space to place an other block... read more
Unable to fetch paragraph’s multi field values inside node twig
I have a content type as “worker”. I have a Paragraph “test” and I am referencing “test” paragraph inside my content type “worker”. This allows multiple values to be saved. How can I get the multiple “test”... read more
Custom Ajax forms with managed_file form element
We have a form with three fields – where depending on the value of the first select field, we will show the other two form elements – one select field (the options depends on the value of the first select field) and one file upload field. The issue is that... read more
Validation constraints on form fields ignored
Trying to figure out custom validation with constraints, but no luck yet. Right now, my form posts content and gives no errors when form is filled out incorrectly. (Please avoid suggesting validation modules — I know those exist.) Maybe somebody knows what... read more