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.
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
So I am overriding the login form and want to have unique state of the form for the first load screen, when user hasn't entered anything yet. What do I do, I tried to get what is the difference with form vars when submitted and when never submitted. I found out you can do this by form ID as it changes each time (which is not so good for theming of the forms).
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
If your mysql server won't start in MAMP you should run
sudo killall -9 mysqld
and this will probably make it run again.
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