


How to run custom function after clicking next on a multi page webform
I’ve created a multi page webform and I want to run a function after the user clicks the ‘Next page’ button on the first page only. After the user fills in the data on the first page, I want to grab that data and do stuff with it. After that the... read more
How do I change the ID of a copy of an exposed filter?
I’m using answers from Expose a view's filters both in a block, and in the actual view to duplicate an exposed filter as a block and make it appear in another region on every page. I want to style both form copies a bit differently. When I started to look... read more
How to add multiple items to cart?
I came across this other question and wondered whether it was compatible with Drupal 6/UC 2: Add multiple items to cart I would like to create a page that shows the thumbnail and title of all products in a category, with a checkbox next to each one. Then, when a... read more
What could cause the Wysiwyg module / CKEditor randomly disappearing and coming back?
I’ve successfully installed and configured the Wysiwyg module with CKeditor. However, it keeps disappearing. First it disappeared when I enabled another module (cannot remember which, but thankfully it wasn’t necessary so I could disable it again). I was... read more
How do I include custom CSS files in the styles dropdown?
I am trying to include custom css file to ckeditor. It doesn’t show css file in styles drop-down list. I have included this two lines of code into; /drupal/sites/all/modules/ckeditor/ckeditor.config.js config.extraPlugins = ‘stylesheetparser’;... read more
PDOException Error upon saving node with computed field
I have a node with three fields that I need to concatenate into a single computed field: title, icon, and track. Track is a term reference to a taxonomy term, and icon is a field attached to the taxonomy. In my computed code, I’m using this: $tmp =... read more
Views pager labels translation per context
Now that I finally have managed to have Views pagers appear, I’m wondering how I could change the strings collection (prev, next, first, last…) per View. That’s because in a View that displays items in chronological manner, I would rather see labels... read more
Hierarchical select hook form alter
I have a problem with getting my module_form_alter to work for hierarchical select. I am running on Drupal 7 and my content type is called mytemp and I’m pretty sure my form-id is mytemp_node_form. I have a taxonomy called ICA which my hierarchical select... read more
Lock a Field Instance
Is there a way to lock a field instance? I want to prevent users from editing or deleting a given instance, but allow the field to be customizable elsewhere by the user. If I lock the field, it will do the former, but prevent the latter. According to this Field API... read more
Zend Optimizer+ error
Can an anyone help me.I am getting the following error while running my drupal 7 application Fatal error: Cannot redeclare function views_views_plugins() (previously declared in /var/www/vhosts/cibi.hq.k.grp/newsite/sites/all/modules/views/includes/plugins.inc:15). If... read more
Using token in page.tpl.php?
I downloaded the social media module and I found this token: [socialmedia:sm-twitter_username]. I want to show it where the Read more / Add new comment section is, under an article. Since I can’t find a block that is for that sections how can I just insert it... read more
How to display devel dpm messages on a panels generated page?
I am testing a custom module for a site using Panels Everywhere & Panels. I need to put the results of a Devel module dpm() message into a pane so that I can see it on page displays. Does anyone know what content type it might be? I assumed it would be System... read more
How can I add new components to a fieldset?
I’d like to customize the webform everytime the user saves a webform node. I’m using rules with a custom action that updates the webform when the user saves the node. Looking at devel, I haven’t been able to figure out what the proper key to specify... read more
Why does jQuery slideToggle revert back to initial hidden state after running?
I have a Superfish menu and a simple jquery slideToggle animation attached to each menu item. I am using Drupal 7 & the Superfish module. The idea is that on click it will show the body content of the site which is initially being hidden. All seems to work fine... read more