Cache not getting cleared in Front page

Hi Team,

I am trying to clear the cache programmatically using cron job. I am using the following code to clear the cache.

drupal_flush_all_caches()

But the problem is, the front page is still getting me the cached value. Its not clearing the cache. The other pages are fine with the latest values updated.Can anyone give me the solution. I am using the drupal version 8.2.x.

$form_state->setRedirectUrl($url); in new window

$form_state->setRedirectUrl($url);

How do do this so that the URL opens in a new window? It is going to an external Site.

Thanks

Unable to translate a string because other strings are saved too.

I want to translate 1 string.

When i search for it, other strings show up too. When i change the string i want, Drupal says that i can't use HTML strings. But they are only on the other strings that show up too. Not in the one that i want to translate.

See screenshot for detailed example:

https://ibb.co/cJ5Dhv

How can i just edit the string "Submit" without saving other strings.

Thank you!

Unable to get C.O.R.S on multisite working

Hello,

I am unable to get C.O.R.S (Cross-origin resource sharing) working on my module on a multi-site running on Dupal 8.3.5, my website is also run by Apache. I have tried the https://www.drupal.org/node/2715637, and older methods: such as configuring the .htaccess files and trying to add header("Access-Control-Allow-Origin: *"); with no avail.

hook_element_info_alter() does't seem to work for me

Dear community,

I'm new here and this is my first post.

Right now I'm learning Drupal 8 and go through the drupal 8 cards (d8cards.com)
With card 9 I have a very big problem and I don't understand what I do wrong.
http://www.d8cards.com/activity-cards/day-09-attaching-assets-cssjs-d8.html

The task is to attach some css and js in a module to every table on the page.

These files do I have:

d8card9/d8card9.info.yml

How to generate a PDF document from a Webform submission?

Hi all,
we are using the module Webform to offer some complex forms to the customers on a Drupal8 site.
We have to produce a PDF copy of each submission.
I've seen that there is not a Drupal8 version of Webform2PDF.
Which is, according to you, the best alternative?

Thank you very much

Claudio

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x