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.
Hello,
I am a newbie trying to build a website using Drupal 8.
I have created a "Contact Us" page in English. URL of the said page is - http://my_ip_address/Contact
I have created another "Contact Us" page in Hindi language. Its URL is - http://my_ip_address/hi/Contact
Instead of this URL, I want to display it as - http://my_ip_address/Contact
for the Hindi language page as well. ie I want to remove the .../hi/... part.
But the URL alias option does not permit me to use same Alias twice.
In content type->manage display page there are formats for each field. I want to make my own image format such that i can select it from here. the default formatter uses image.html.twig. I want my formatter to use another one. Thanks in advance :)
I'm converting a large existing website to run on Drupal. Part of the website runs on complex, custom-written php. Converting it to a Drupal module is something I don't have the skills or time to do right now, but it runs perfectly well and doesn't actually need to be moved into Drupal anyway. My plan is just to theme it the same as the rest of the site and otherwise let it run in parallel. Drupal will run in the site's root directory, as you'd expect, so this custom php will need to run in a sub-directory.
I've been trying to do this, but I couldn't find a correct way to do this.
Probably same principal like this one with node (content type): http://dropbucket.org/node/7270 but with core Contact form.
Please advise.
Thanks in advance.
UPDATE:
I had to rephrase my question, it's actually more on how to update field reference's value.
I tried this code as below for the normal field's value, and it's working.