Inline images are broken

Inline images are broken

I’m running Drupal 8.4.3 on PHP 7.0.22 atop Ubuntu 16.04LTS, Nginx 1.10.3 and MySQL 5.7.20, using the OpenSocial distribution. Whenever I try to add an inline image into a basic page using CKeditor, I get broken image displayed. The image i’m trying to... read more
Inline images are broken

Store cache’s datas in files instead of database

In a huge website, database’s tables storing cache may become very large : is there a way to store cache in file system instead of DB ? I’m talking about a solution that doesn’t use external systems like varnish, simply an option provided by Drupal... read more
Inline images are broken

How to do twig calculation for mathematical operation in view

I have two fields. Marks obtained as field_marks_obtained Total Marks as field_total_marks Now I have added both in view and added a custom text in which i am writing custom twig to output the percentage. I have tried with {{ field_marks_obtained }} which gives me... read more
Inline images are broken

Display parent term based on child term in views

I have a vocabulary with the following structure: Vocabulary Parent term 1 Child term 1.1 Child term 1.1.1 Child term 1.2 Child term 1.2.1 Parent term 2 Child term 2.1 Child term 2.1.1 Child term 2.2 Child term 2.2.1 Based on the above structure of taxonomy terms, I... read more
Inline images are broken

How do I use an absolute URL to set as breadcrumb link?

I would like to use absolute URL instead of relative URL as the breadcrumb link on my website. Right now, I am using Drupal 7 and Path Breadcrumb 7.x-3.0 Module. All my breadcrumbs are set by Module. This is a sample of my breadcrumb right now. <div... read more
Inline images are broken

views_get_current_view returns null

I have placed the following function in my .module file to get the information of current view. But it returns null public function buildForm(array $form, FormStateInterface $form_state) { $record = array(); $view = views_get_current_view(); } I have added use... read more
Inline images are broken

Views query alter for specific node/content type

My idea are instead of update the views name to the custom code one by one. I like to apply to same content type, but I don’t know the syntax. function myModule_views_query_alter(&$view, &$query) if(($view->name == ‘?????????’){ } I would... read more
Inline images are broken

Permission restrictions deny you access to this broken link

In Reports -> Broken links page for some records it is showing permission restrictions deny you access to this broken link Site have only one language also, some of the broken links are showing with https link also. So I don’t think the problem with protocol... read more
Inline images are broken

How can I generate thumbnails for PDF files?

I am working on this website which has a documents gallery that will be updated periodically. One of the core requirements is to generate a thumbnail from the uploaded PDF file(First Page of the PDF file) and to be displayed in the documents gallery page(Implemented... read more
Inline images are broken

error 500: Premature end of script headers: index.php

Everything works except the /node/[nr]/edit page of only one content type page. And it’s not for every page of this specific content type. Only one. So let’s say I have a content type “product” and created 5 nodes with that content type.... read more
Inline images are broken

Change field value with hook_views_pre_render()

I’m using Views in 8.4.0 and attempting to change the output of a field value with hook_views_pre_render(). The default value of the field is a node ID. The intent is to replaced the value with a static string depending on a whether or not it’s contained... read more
Inline images are broken

Synchronizing a webform to populate MailChimp lits

I’m synchronizing a webform to populate MailChimp lits via the MailChimp module. As well as capturing the first and last name I also want to capture the City and Province. However when I submit I only seem to capture the email address in MailChimp. I configured... read more
Inline images are broken

On a content page that references a taxonomy term, how can I display only content that references that taxonomy term’s immediate children?

In Drupal 8, I have a hierarchical taxonomy vocabulary called “Living Things” containing these terms: Animals –Fishes —-Blennies ——Yellow Blenny ——Green Blenny —-Gobies ——Blue Goby ——Red... read more
Inline images are broken

Using Rules to send an email to all Simplenews subscribers

On a Drupal 8 site I’m working on, we are using Simplenews to allow users to subscribe to a mailing list for blog posts. The client would like us to set up a rule to automatically send an email to everyone on this specific blog post subscriber list whenever a... read more
Inline images are broken

How to get menu title inside menu–main.html.twig file

I created a suggestion for menu and using menu–main-sidebar.html to render menu. I want to include menu title (title of block added to specific region from admin side) as first child of menu I tried to use configuration (configuration.label shows menu title in... read more
Inline images are broken

Translation for webform error message

I using drupal 7 for my website. I created one feedback form using webform and Internationalization for both English and Japan version. It works fine, but the error message for Feedback is required. is showing 「ご意見・ご感想」は必須項目です。 where translation for Feedback is... read more
Inline images are broken

How to add condition for 1st Iteration in views-view-fields.html.twig file

I am trying to implement a carousel , inside my views-view-fields–block_1.html.twig , I want to add active class inside the div for the first Iteration . I have added the code in twig file but every time it is adding active class for all the iteration. code... read more