How do I exclude part of the code ?

I have a Drupal 8 template file with the following markup.

<div class="col-4 col-sm-4 col-md-4 col-lg-4 col-xl-4 p-0 text-center">
  <i class="far fa-heart fa-lg"></i> {{ product.flag_like_product }}
</div>

Is it possible to exclude the following markup?

Upgrading to Webform 6.0.0

Hi,

I'm currently running a D8 site with Webform 8.x-5.22. I intend to go to D9 and installing Webform 6.0.0 seems to be a pre requirement.

Simple question regarding this sole webform upgrade under D8 : How to do it and keep forms, results and all that goes with.... Is it as simple as replacing the webform module folder, being sure dependencies are met and run update.php ?

Going to D9 will be next step....

Thx beforehand,

How to create and return html with submitted form data

Hello,

I have created a customized form with Form API by Drupal 8.

I need to use the data obtained through the form to run a research in the database and print the results with html onto the same page.

I created the form through the buildForm method and I got the data obtained through the form with the submitForm method.

Is there a way to print the results obtained through the form onto the same page through HTML blocks?

Please help in Override preRenderWebformQuizResultSummary function

I want to override 'preRenderWebformQuizResultSummary' function in custom module to change the result text programmatically.

I need functionality to show different message on particular range of score in Webform Quiz.  I am stuck in override the above function. Please help!
 

Calculation hours Time Field For Drupal 8.x / 9.x module

I have installed the Time Field For Drupal 8.x / 9.x module to have the start time and end time entered. Works well. I can't calculate the Number of hours. I have $ OraIni and $ OraFin.
   $ OraIni = date ('H: i', $ form ['field_time_mission'] ['widget'] [0] ['from'] ['# value']);
   $ OraFin = date ('H: i', $ form ['field_time_mission'] ['widget'] [0] ['to'] ['# value']);

See uploaded site but cannot log in as admin

I built a site locally using MAMP and the most recent Drupal 8. tested it locally, and it works. I can't makae it work in production..

I uploaded and extracted a compressed archive and imported the data base.  I can see the home page and navigate around the site.  When I try to log in I get this:

"The website encountered an unexpected error. Please try again later."

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x