How to get access all images of custom directory in twig template?

How to get access all images of custom directory in twig template?

I intend to create a slideshow in front page of my theme to show all images in custom directory, I try to use file_scan_directory and drupal_get_path in below codes to get any non static images path and display that images automatically without any need to calling... read more
How to get access all images of custom directory in twig template?

The directory public://xmlsitemap was not found or is not writable by the server

I have just installed XML Sitemap on a EC2 drupal 8 instance. I am seeing the following error message in the admin report status page: XML sitemap cache directory Not found or not writable The directory public://xmlsitemap was not found or is not writable by the... read more
How to get access all images of custom directory in twig template?

How to set a field value from parent template in Twig?

I have node–article–teaser.html.twig which calls image-formatter.html.twig to printout the field_image. Everything works fine except that I don’t want the field_image itself to be a linked. i.e image-formatter.html.twig should not find a url to only... read more
How to get access all images of custom directory in twig template?

How to show SUM of values from referenced entity fields in a View?

Okay, I’ve a two content types “A” and “B”. “A” is a parent and have a field referenced(Entity Reference) to the child content type “B”. Now I’ve created a View(Table) with a list of “A”. And I... read more
How to get access all images of custom directory in twig template?

Trying to create a static page for my module using page callback in hook_menu

I’m taking first steps in building a module for Drupal 7 and am trying to create a static page within hook_menu function. In the $items array, for ‘page callback’ I create an very simple function named ‘semi_static_page’. This simple function returns some html.... read more
How to get access all images of custom directory in twig template?

How to fix error Undefined index: parent in taxonomy_form_term_submit()?

I got below error on my site recently. Notice: Undefined index: parent in taxonomy_form_term_submit() (line 829 of /var/www/Sites/xxxxx/modules/taxonomy/taxonomy.admin.inc). I google it and find there is an old issue but seems nothing solved. In the issue, @Cracu did... read more
How to get access all images of custom directory in twig template?

How do I solve extra characters in a date format?

This seems to be a known issue in drupal, personal commentary redacted. So I set up a date format, and any non date-format characters get reprinted at the end of the date. I first had my formatter set up as Y年m月, but read in the issue that I need to escape characters,... read more
How to display events in chronological order?

How to display events in chronological order?

I am new in Drupal and I want to display events in chronological order by start date of the event. My current setup is that the latest added event is showing. Here is a screenprint of the View I created so far: Any suggestions? read more
How to get access all images of custom directory in twig template?

No working link to network files

For an intranet solution I would like to add a bunch of rather static links in Drupal to network files which change from time to time and are maintained by people not using Drupal. To achieve this I used the link functionality of CKeditor: Protocol URL... read more
How to get access all images of custom directory in twig template?

Adding a class to “body”

I’m trying to add a custom CSS class to the <body> tag, How can I modify or pre-process the <body> tag to add the class body, Is it right to style the <body> tag with css file? read more
How to get access all images of custom directory in twig template?

How do I index custom fields with the search API using elasticsearch?

I see all kinds of tutorials to get apache to index content. Is there any difference in getting elasticsearch to index my new custom field? On the field page I can see my field but when i expand it there is nothing to add. Using this Create custom fields using custom... read more
How to get access all images of custom directory in twig template?

Images uploaded with CKeditor disappear after cron run

When i upload images with CKeditor in a directory inline-images – they disappear after each cron run. Why is that happened? I had a look at db table file_managed it’s status set to 0. What it might be? read more
How to get access all images of custom directory in twig template?

Form field not show on Ajax Callback even the callback is called

I have a form with one shown field of type select with ajax callback to show another form field dynamically of type select and with ajax callback again, the problem is second field ajax callback should show a third field dynamically but nothing is shown. here is my... read more
How do I get JSON data from a custom entity

How do I get JSON data from a custom entity

I would like to GET JSON data from drupal 8 custom entity. I am using ubuntu 14.04 and vagrant. For that i have done these steps. I have taken reference to Create drupal 8 custom entity from this link. Enable this modules: HAL – Core module HTTP Basic... read more