Plain modal form, load on page load

To load just plain moda form and add some contetn to it. Do this

  $(document).ready(function() {
Drupal.CTools.Modal.show();
$('#modal-title').html('put title here');
$('#modal-content').html('put content here');
  });

and modal will open.

Loading CTools modal on page load for specific pages

This is my first solution in series of solutions for automatic loading of modal forms. If you have a link on some page that you want to load on page load. You need to first create JS that would make that and then find a way to add that JS to specific pages. So first JS

Theming whole modal form with custom class

In the previous post I wrote about the way to create custom modal form sizes. This time I will add a class to each window, so you can also theme them totally. Currently by default there are only generic classes and you can make one header of modal form different then the other. You can only theme form part as form element has unique class. As in former post I created

Creating custom forms for modal forms

If you want to create custom forms (custom window sizes) for modal forms, there is a hook in module that will let you define them. By default you have small, medium, large. This way you can create your own.

Use modal_forms_js_settings hook alter and just add data to $js_settings array

Creating custom facet block for Search Api Location module

Facets work fine and by design they narrow down the search results with each facet option you click. But what happens when you want to make them work differently. Some of that can be achived with changing opearator to OR in facet settings. But in this case with search api location module this doesn't work, not sure is it a bug or by design but I solved that with creating my own facet block.

Solr Search Api, search Title as fulltext and sort as string

Currently if you use SOLR for search and deploy it with search API module you can index Title field as fulltext so you can make better use of it and find parts of it when searching. But then you can't sort by title in search api sorts module, what to do? Well use