


Get web image url from real path
As part of some other functionality I am generating an image in temp folder and But unforunately I’m not able get the web url of image. $path = Drupal::service(‘file_system’)->realpath(file_default_scheme() . “://”); $image_path =... read more
BaseFieldDefinition change DB column type
In a content entity definition, I’ve got the following: public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { $fields = parent::baseFieldDefinitions($entity_type); $fields[‘frames’] =... read more
Importing ‘body’ into ‘paragraphs’
I need to migrate an ordinary D7 multi-value long text field ‘body’ into D8 paragraphs . As paragraphs seem to be a reference, the migration will probably be more complex than just direct field mapping. Moreover, my target paragraphs include multiple... read more
Instagram Block Not Showing on Page
I have followed all of the tutorials for implementing a Instagram Feed / Block. I have the correct client id and client information as requested, however my block doesnt show up when i enable it. Is there an issue with the Instagram Block? read more
How Can I have Exposed filter for Taxonomy vocabulary in Heirarchical Select?
I use drupal 7 and simple hierarchical select module for filter views module result by taxonomy terms and taxonomy vocabularies. my views have results only if select both vocabulary and taxonomy term from select list (exposed filter) .if I select only vocabulary from... read more
Prevent trigger of other hook_preprocess_HOOK()
Is there a way to prevent other preprocess hooks from being triggered? I have a Drupal 8 hook_preprocess_HOOK() implementation, and I’m doing some alterations. There will be other modules with same hook, and I need the other preprocess hooks not to alter my... read more
CKEditor "Source" button does not brings back the full html
I have written a full html code <div style=”background-color:red”> </div> But when I edit the content and click on the “Source” button provided in the CKEditor toolbar. nothing is showing up In Advanced content filter I... read more
Redirect to Different URl on validation errors in form builder
I am using drupal 8 fapi and i have user case as below I have a form on https://example.com/landing-page and I submit the form and there are validation errors .the page should reload as https://example.com/landing-page#lead-form. Is there any hack we can implement? I... read more
Loading mixed content
I have a site loading over https. However, two items are being picked up in Chrome as targeting http, and I can’t figure out where to look to change them. They are: GSS search form: we are using Google Site Search module, and it’s posting to http. Drupal... read more
Import CSV file from S3 Bucket
Using s3 file system & feed import module. Issue is the fetching of csv file from s3 working… says no file or folder detected … have the folder under s3://public/repo.csv and had read/write permission. When running import, it will have a no file /... read more
How do I troubleshoot a jQuery/AJAX issue?
On a current Drupal Commerce installation, I just started experiencing issues where a field is not updating after a jQuery click event. When a user selects an option, the price typically updates for several of the products on our store. When adding the item to the... read more
Understanding Views Aggregation
I have a view that uses a Relationship and Aggregation. My View is working; however, I don’t understand how/if I can fix the Query to remove redundant GROUP BY fields. Here’s a summary of what I have: I’ve created a View with Child items, which have... read more
How to set default reply-to address in webform?
I am using Webform Reply to module to set Reply to address for mails sent from webforms. This feature works fine but for each webform creation I have to set Reply to address because by default it will select Default: No Reply-To address option. But I want to select a... read more
Is it possible to turn off Ajax load for Commerce Coupon Module?
I am getting a bunch of issues with the Commerce Coupon module 7.x-2.0-rc3. Mainly there are inconsistencies with the forms updating and also intermittent timeouts. I’m assuming it’s an Ajax load issue. Is there a way to turn off the Ajax load when a... read more
Get node path for different domain
I have a series of nodes which are published on up to 7 different domains on the same single Drupal 7 install. Whilst I can use url(‘node/12345’); for nodes published to the current domain, I would like to create href links to the these nodes and have them... read more
How to access weight of a paragraph in twig?
I use paragraphs with my content type. I need to show weight (order) value of each paragraph in my twig template. I can change weight with select box when I edit the node, but I can’t figure out how to get it in twig. I thought it would be something like this:... read more
Is it possible to disable taxonomy hierarchy?
The site I am building uses fields (plus a custom module) to provide a richer set of relationships between taxonomy terms than the built-in hierarchy allows. I want to remove/disable the built-in hierarchy. What I mean is that when a user is creating or editing a... read more
Managing custom aliases on translated content
We have a Drupal 8 site with translated content, and using the Pathauto module. The issue we are running into is that when we un-check the “Generate automatic URL alias” on, say, the Chinese node, because the content editors want to customize that URL,... read more