Usual redirecting wont work if modal is opened. So to do that you need some custom code like this will work for redirecting after loging in.
Usual redirecting wont work if modal is opened. So to do that you need some custom code like this will work for redirecting after loging in.
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.
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
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
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
There is a good guide how to make custom login here https://www.drupal.org/node/350634
So this is not the cleanest thing possible and maybe some views filter should be made but I created it mostly for the purpose of adding extra button to search a search api index data with user current location.
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.
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
I'll try to make this quick. Installing xdebug for drupal is the same as installing it for anything else like wordpress etc