How to get image uri from image media fields

I want to add images to my commerce product variants.

I am wondering between using the image type vs media type.

for using the image field,  I have write this twig code to modify img element:

{% set image = product.variation_field_images[0] %}

{% set image = image|merge({'#image_style': 'large'}) %}

{% set image = image|merge({'#item_attributes': { class: 'xzoom', xoriginal: product.variation_field_images[0]['#url'].uri } }) %}

Drupal 8 pasteNotification not translate in \core\assets\vendor\ckeditor\lang\fr.js

\core\assets\vendor\ckeditor\lang\fr.js
"pasteNotification":"Pour coller, veuillez utiliser le raccourci clavier à cet effet (Ctrl/Cmd+V)."

in twice places

Can't edit YAML in webform

I've created a webform and am trying to get the MailChimp handler to push first name from the form to MailChimp list. I have a webform field with a key of FNAME (matches the field tag in MailChimp) but I'm unable to edit the YAML to include '[webform_submission:values:FNAME]'. I get this message: Elements (YAML) is not valid. YAML must contain an associative array of elements.

Any suggestions? This is my first attempt at editing YAML, so I might be doing something wrong.

How to create category options for Authors

Hi, Again...

Can anyone help me set up a category list for my authors? I want to create a list of categories and make it available for my users/authors to chose from when creating a content (articles). I believe Taxonomy is the way to go with but I have no idea how to make the listing available on the content creation form. By default all I can do is create taxonomies and put up a field for users to fill it with taxonomies or chose from what is displayed while typing but i want them to be able to chose from a list instead of typing to see the options (like in wordpress).

How to format images and titles in views slideshows

Hello guys!

Ok, here I am again in need of your kind help. I have set up two slideshows on my site (local). Both are views block using the views slideshow module. One above the content area (590x100) showing images and the title of latest articles and another on the left side-bar (230x100) showing latest news items with both title and image.

How to encrypt URL parameter in Webform?

I have two webforms. Users fill in details in first webform and the same information passes to the second webform thru URL.

How can I encrypt the parameters that is passed in URL?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x