This forum is for assistance with theme development.

Two Action Different in webform

Hello! I can not do the following in the webform:

I need to create a webform that has 2 buttons which each of them downloads a different PDF if a different option is chosen in the combobox, how can I do it? 

thank you

Drupal 8 Inline JavaScript from View Preprocessor

I need to do something that I know is antithetical to Drupal 8:  insert inline JavaScript from a PHP function.  If time allowed, I would restructure the site to avoid this situation, but I don't have time.

I need to have a PHP associative array, encoded as JSON, to be available to the whole page within script tags.

The PHP object is created within function THEME_preprocess_views_view__VIEWNAME.  How can that associative array/JSON object be made available to JavaScript in the page?

Thank you in advance,

Mike

Hi I am new to drupal. need to setup a theme.

I am using a theme bootstrap mint.

i want to write a hook to show promoted articles in the slider. i have put the app in debug mode. i find below twig files

Responsive image style

Hi,

is there any way so I can make a responsive image style for background images?

Thanks.

How to check if a field value is not empty

Hey. How to make the condition "if the field is not empty"? I try so:

if ($form[$field_name]['value']['#default_value'])

. It's not working. Page field user "link to the taxonomy term"

Drupal 8 print image

Hello,

How I can print my logo image on page.html.twig file?

Thanks..

Pages

Subscribe with RSS Subscribe to RSS - Theme development