How can I create multiple cropped Media images without re-uploading them?

How can I create multiple cropped Media images without re-uploading them?

Solutions that I’ve found allow to crop Media, type Image when I’ve uploaded an image, but the media entity is not yet created (on the “Add media” page). I need to upload a large full image once (and use it in full format on some nodes), and... read more
How can I create multiple cropped Media images without re-uploading them?

How to arabic emails are right aligned

In my drupal8 site iam using arabic email for signup,login,forgot password etc.I have get arabic email content.The email content is left aligned.I am using PHP Mailer in my site to sending emails.When i have tried with Mail Systems+Mime Mail+SMTP,then showing an error... read more
How can I create multiple cropped Media images without re-uploading them?

How to get the id of a group when using the Group module?

I’m using the Group module. How can I get the id of a group whose a user is a member (I have the user id)? read more
How can I create multiple cropped Media images without re-uploading them?

hook_editor_js_settings_alter()

I am using hook_editor_js_settings_alter() to disallow HTML tags in Ckeditor. It is only working in node edit form, and Ckeditor is in edit mode. Wen I preview the published page it allows the tags in my disallow custom hook. The following code was a test to disallow... read more
How can I create multiple cropped Media images without re-uploading them?

How can I get translation for a field of custom date

I am using the paragraphs module. I have a field which contains a date and time e.g. for events, which is added by an author. For the output I use a paragraph-twig-file and I have this: <div class=”timeline-date”> {{ content.field_date }}... read more
How can I create multiple cropped Media images without re-uploading them?

Use of Twig template for webform email

I’m trying to help my father out by building a webform (D8 version) for the 4 theaters his Old Abbey Friends are putting up. I’ve made the webform, now i’m setting up an email handler so that people get a confirmation email. Straightforward enough,... read more
How can I create multiple cropped Media images without re-uploading them?

How to disable obligated address fields in Drupal Commerce in checkout?

In D8 drupal commerce there is a step after the customer selects checkout. Left in the screen is de payment information which contains a form with: Country Company First name, Last name Street address Postal Code City We only want : Country First name, Last name I... read more
How can I create multiple cropped Media images without re-uploading them?

Views hook_views_data add multiple joins to custom table based on row condition

I’m using hook_views_data to add a custom table and its fields to Views. The table relates to nodes, and looks like this: + node id | my_value | time_period + |———–|————|————–| | 1 |... read more
How can I create multiple cropped Media images without re-uploading them?

Migration Source YML File import date string into date and time field of content type

I have a json file full of data exported from a wordpress site, one field being a string representing a date and time: “03/15/2012 14:46:19”. I would like to import that string into a date and time field of a drupal 8 content type. I am using a Migration... read more
How can I create multiple cropped Media images without re-uploading them?

Update the block through ajax

I have added a block which shows the no of items added to an entity. I want to refresh the block through ajax as the items are added to an entity through ajax form so whenever I add an item, it will refresh or re-render the block content too. I found some of the... read more
How can I create multiple cropped Media images without re-uploading them?

How do I load CSS files to a custom theme?

I understand this question has been asked many times. However, I still can’t figure out why the CSS files of my custom Drupal 8 theme are not loading. Edited (more info): The CSS files are not being defined at all (they do not show up in the HTML). Here is my... read more
How can I create multiple cropped Media images without re-uploading them?

on(‘load’) is not working with jQuery 3?

I used to use the following function to load a video in the background (jquery 2.2.4): function getVideo() { if ( $(‘video’).length ) { $(‘video’).each(function() { if (Modernizr.mq(‘(min-width: 1024px)’) &&... read more
Manage Display Field Label not changing: inline does not work

Manage Display Field Label not changing: inline does not work

I have the same problem as question 212176 and discovered it has to do with CSS. I have 2 (local) sites both with module ds enabled. I configured in both a field where I want the label and the value in one line: inline With the classy-theme, this works fine. With the... read more
How can I create multiple cropped Media images without re-uploading them?

How can I add "data-target" additional attribute in mega menu?

How can I add an additional attribute to menu item I am using mega menu? On element inspect my current menu url is displaying as : <a class=”we-mega-menu-li activeNav” title=””href=”/clients/drupal/abc/fr/home#xyz”... read more
How can I create multiple cropped Media images without re-uploading them?

Prepend custom block body text

I have a custom block with text in the body field. I need to prepend some text to this body field, either using php in a theme_hook function or in a twig file. How can I get just the text of the body field of a custom block so that I can alter it? read more
How can I create multiple cropped Media images without re-uploading them?

On hook_entity_presave how do I know if it is a new node?

I’m using the hook function nvgh_entity_presave(DrupalCoreEntityEntityInterface $entity) { } but I only need to do something when the node is new (not when it is edited). How to do this? I’m inspecting the entity with kint but cannot find a good indicator... read more
How can I create multiple cropped Media images without re-uploading them?

Having multiple Drush instances for different core versions

So in my environment, I have some websites on Drupal 7 and some on Drupal 8, and since the latest Drush 9 works with Drupal 8.4+ I was wondering if there’s a way to be able to have both Drush 9 and (put another version here) to work on both major Drupal... read more
How do I create a search page?

How do I create a search page?

I have the Search API and the Solr search modules installed. In /admin/config/search/search-api, I see my server and index created and with status set to OK. I can see on the index view page that my content is indexed correctly. I did not use the Solr Search Defaults... read more
How can I create multiple cropped Media images without re-uploading them?

How to filter Search API index view by taxonomy parent

I am using the default database server that comes with search api. I have the Hierarchy Index ticked and I also have the taxonomy field that I want selected. Could someone give me instructions on how to configure the view to have it filtered by the taxonomy... read more
How can I create multiple cropped Media images without re-uploading them?

How to pass Webform elements from controller to custom twig template

I’m pretty new to Drupal and probably this is simple but I got stuck with this. What I’m trying to do: I have created a custom module where I have defined a custom route to display my webfrom in custom twig template. How and what to return from Controller... read more