Search not finding block content on page?

I just realised that Drupal 8 search does not find content placed in blocks. Is that true or a setting not set right?

Thanks for the help

Anders

D8: Same URL for multi-lingual pages

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.

How to create custom image formats

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 :)

Drupal 8 - Google Search

Has anyone successfully implemented a google custom search?

Drupal 7.x had a module for this, but it hasn't been ported. I'd appreciate any jumping off advice.

Thanks.

D8: unable to run custom php script within Drupal directory

Hello,

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.

How to update field reference's value in core Contact form programmatically?

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.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x