Create a block that displays form or message.

I would like to create a block in a custom module and have the block display a form or some text but not both. How would I determine if the form was submitted successfully so the code could either return the form or the text? 

Composer fails with PHP memory_limit < 2.8GB

If I run composer require drush/drush on a brand new out-of-the box D8.8 or D9.0 site (on shared hosting), then it will mostly FAIL with less than PHP memory_limit = 2768Mb (always fail with less than 1 GB).

how to migrate the content of the newly added fields content stage to prod and how to migrate the content stage to Prod Server

Hello Drupaler,

I am having the Drupal 8 site on stage and prod.

Our Content Migration Team does all data entries on stage site regarding content for multiple languages.

on average on a new phase, we do have 20 fields for the content type.
I am able to export and import content type and it's fields and it's view via Drush.
so I deploy that newly created fields to prod via Drush.

looking for a solution to deploy content as well but couldn't get any solution.

How can I prevent one template from displaying cached values ?

I have a site with Drupal 8.9 and Twig Tweak.

I created 7 view blocks to set up a task list in stores. I want to display a task counter for my current user on my home page.

The tasks checks :

Hybrid Composer/FTP Drupal 8 workflow questions

Is it ok to use composer on localhost to upgrade core and modules, and then FTP the files to the server?

I'm on shared hosting, and although it's possible to use SSH with GIT, it's a pain in the ass to set up...

Some information about my usercase:

[solved] Distributions...

Hi All,

Guessing that this has been asked before...but...if I download one of the distributions, I assume that I can extend it further with modules? 

For example if I where to start a new project with the varbase  distribution could I extend it with say some of the social media modules?  I am guessing that they just get added to composer.json?

Thanks in advance for any subsquent posts,

Mark.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x