Wednesday, 24 June 2015

Webform conditional Jquery conflict with Chosen Module

My issue is that I have a select dropdown that when I use a Conditional on it , it then becomes greyed out.   These drop downs are also being run through the Chosen module.

After investigating in JQuery update I've found that if I change the version to 1.5 the dropdown shows, but this is not a suitable solution.

The solution in the end was for me to update chosen to the latest version - 7.x-2.0-beta4+1-dev

Wednesday, 17 June 2015

Unable to use entity_ui_form_submit_build_entity on Node Entity_metadatawrapper

I was having issue with the following code when building an entity from form data.

$node = entity_ui_form_submit_build_entity($form, $form_state);

Here's the code I used that worked

$node = $form['#entity'];

      $node->job_listing_node_form = TRUE;

      field_attach_submit('node', $node, $form, $form_state);

      $wrapper = entity_metadata_wrapper('node', $node); 

Monday, 8 June 2015

Drupal 7 webform change single Radio button into checkbox

Here’s a quick one. 
I wanted to set up a tick box that when click on reveals some extra options.  This box can also be unticked if you don’t want the options.  

What you need to is when adding your type as ‘Select Options’ in the Form Component of Webform.
On the next page you’ll need to set only one options in the Option section. 

And then tick the ‘multiple’ selection above. If you don’t do this webform will create a radio button that cannot be unticked once it’s been clicked on.

Wednesday, 3 June 2015

Drupal 7 Webform how to create Multi step form

When you're setting up 'Webform' in 'Form Component'  .

To start a new page you need to choose 'Page Break' in the the TYPE dropdown.

Tuesday, 2 June 2015

CSS content text not adding space after comma

Using CSS content for some reason after a comma the space that follows would not appear.  It's fine for a full stop however.   Here's what I needed to add

.pane-content:before {

      content: "a sentance,\00a0 and a space. ";


Monday, 1 June 2015

Drupal 7 move Navbar to the left hand side in Administration

I’ve seen this Module being showcased on the lefthand side.  But after installing there is no configuration from Modules, so I was a little confused on how to move Navbar to the Lefthand side. 

In Css I made the existing admin menu disappear

#admin-menu-wrapper {

    display: none;


After this you can use the button on the right hand side of the NavBar menu and this will move the Navbar to the left hand side. 

Drupal 7 issue with moving Media Module 1.x to 2.x

I had an issue with Drupal 7 Media Module and specifically in that the Library was displaying as blank.

So instead I updated to Media Module 2.x ; Here's my configuration notes incase they're of help to anyone.

  1. Turn on modules ‘Entity API’ and ‘Entity tokens’ 
  2. Turn on modules ‘Media Bulk Upload’ - ‘Media Field’ , ‘Media WYSIWYG’ & ‘Media WYSIWYG View Mode’ 
  3. Media Permission - 'Administer media browser’ & 'Use the media browser’
  4. Enable ‘File Entity’ permissions .
  5. Go to ‘Status Report’ and ‘use Database updates Scripts. ‘Apply Appending Updates.
  6.  Check admin/config/content/wysiwyg  that Media Browser is installed.