Submitted by TheCarneyEffect on Tue, 07/14/2015 - 10:22
I have an image field, using the the core image module, set to unlimited number of values. I want to create a custom field formatter so that these images are shown as thumbnails that when clicked pops up the Bootstrap image gallery. This gallery will be an extension to blueimp Gallery, a touch-enabled, responsive and customizable image and video gallery seen here: https://blueimp.github.io/Bootstrap-Image-Gallery/
Submitted by TheCarneyEffect on Fri, 06/19/2015 - 15:16
Out of the box the search button uses the word 'search', but I want to change this so it displays the magnifying glass Glyphicon instead. Also, I want to change the placeholder text from 'search' to something else.
To add the icon in our search button we need to us override bootstrap_bootstrap_search_form_wrapper(). We can do this by placing the following code in our theme's template.php file:
Submitted by TheCarneyEffect on Sat, 02/21/2015 - 10:47
I have a page with a link that when clicked loads and inserts an AJAX driven form into the page. When I click to load the form, AJAX does its business and inserts the form into the page, and when I use the form and submit it, it works fine - AJAX processes the form and my use of AJAX commands in the form callback removes the form from the page. However, if I try to reload that same form by clicking the link again, the form loads up but the submit button no longer uses AJAX. The annoying thing was that all the AJAX behaviors were definitely being reattached to the form.
Submitted by TheCarneyEffect on Thu, 11/29/2012 - 12:50
Render arrays in Drupal are great. If you do not know what a render array is then take a look here http://drupal.org/node/930760, but basically they are arrays that convert into HTML. Render arrays are used to allow other modules to override output before going through the theme layer. What happens though if you have a render array that does a lot of processing? You do not want that array, or part of that array, running each time the page is called.
Here I describe how to cache a render array. Firstly, we need a render array:
Submitted by TheCarneyEffect on Wed, 07/11/2012 - 12:46
What I want is a form themed into a table, but I also want to to make the rows draggable so I can change the weight of each form entry. Below is an example of one way this can be done in Drupal 7. As an example, lets say we have an array of the main characters in the BBC series Red Dwarf (not including Holly). We want to display those characters into a form so our user can change those details, if they so wish.