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 Tue, 06/30/2015 - 12:58
I need to add form client-side validation to my custom form. I'm using the Bootstrap theme but it doesn't include any type of validation so I decided to use the Bootstrap Validator plugin. Examples of validation can be found here: http://1000hz.github.io/bootstrap-validator/#validator-examples
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 Fri, 04/11/2014 - 22:18
This is a quick reminder to myself so I don't forget in future. I need a way of remember what vertical tab was last active when the user revisits or refreshes the page. The only good way of doing this is by using cookies. The first thing to do is add the jquery.cookie.js file that ships with Drupal so we can use cookies within our JS: