ElasticSearch - Update a document and change value of a key
Thanks for reading.
August 05, 2018
Bootstrap has a simple solution to have sticky blocks in your html. I’ve given a simple example in my previous post: How to make sidebar as Sticky
It works like a charm. But, things get little frustrated when it doesn’t work in drupal 8.
I have 2 column theme in bootstrap 4, and wanted to use a block as sticky in right sidebar. I made the changes, and expected it to be sticky. However, it didn’t. I spent lot of time in digging the root cause of it.
By some brute force, I found that drupal is adding an extra DIV, before my sidebar with code like:
<div class="region region-sidebar-first">;
...
</div>
Due to this, sticky behavior was not being set somehow.
Then, my next objjective was to remove this div.
I enabled debug: True in services.yml, and saw that it was coming from a layout/region.html.twig
I copied that file to my theme folder, see before and after code:
<script src="https://gist.github.com/goravsingal/461a6e42485a8dd04d5636a79579df89.js"></script>
I saved the file, cleared cache. And, voila. It worked.
Thanks for reading.
In previous post (Trigger Email on Blob Trigger), we saw how we can create such…
You can either do tail -f drupal.log or open it in an editor like vim.
Tag the image, by seeing its image id, from docker images command docker tag 04d…
hook_cron() suggests to put tasks that executes in shorter time or non-resource…
Introduction It is very important to introduce few process so that your code and…
Introduction This post has the complete code to send email through smtp server…
Introduction In a normal email sending code from python, I’m getting following…
Introduction In one of my app, I was using to talk to . I have used some event…
Introduction So you have a Django project, and want to run it using docker image…
Introduction It is very important to introduce few process so that your code and…
Introduction In this post, we will see a sample Jenkin Pipeline Groovy script…