Profile

Cover photo
DJ Millward
Worked at Littleripples.com
Attended Wadebridge Comprehensve
Lives in Cornwall
70,909 views
AboutPostsPhotosYouTubeReviews

Stream

DJ Millward

Shared publicly  - 
 
SASS how to add styling to all classes that preceed with X
I saw this on a Treehouse lesson earlier and wanted to keep it in mind for my future CSS code.

What it does is add my chosen styling to all the classes that preceed with the chosen markup.
I saw this on a Treehouse lesson earlier and wanted to keep it in mind for my future CSS code. What it does is add my chosen styling to all the classes that preceed with the chosen markup.
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Avoid using comma and extra classes - using Sass compiler for CSS
Just seen this little nugget of code on TreeHouse  and thought it quite useful for writing tidier code. Rather than writing .block, .foo {

  color: orange ;

} you can use .block {

color: orange;

}



.foo {

@extend .block;

//  the rest of my CSS for f...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
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 ...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
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....
1
Add a comment...

DJ Millward

Shared publicly  - 
 
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. ";

}
1
Add a comment...

DJ Millward

Shared publicly  - 
 
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. Turn on modules ‘Entity API’ and ‘Entity token...
1
Add a comment...
In his circles
384 people

DJ Millward

Shared publicly  - 
 
SASS Placeholder selector
I've found this nugget of information hard to find on Google for some reason. All I need to is make a placeholder and call it up again. /* Placeholder selector */ %my-placeholder { border: 1px solid black; } p { @extend %my-placeholder; }
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Drupal 7 using Node Nid to get Entity Data
Ok I'm using this blog as a bit of a code bin. Here's a quick sample of code if you need to get some Entity data from within - you'll need to add protection against any data not being available. /*
* Implements template_preprocess_node(&$variables)
*/


f...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
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_submit($node);

$node->job_listi...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
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.
1
Add a comment...

DJ Millward

Shared publicly  - 
 
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-wra...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Inside the array literal, add three object literals. In other words, the objects array should have three values. Each object should have 2 property/value pairs.
var objects = [
{
object: 'Car',
description: 'A2B'
},
{
object: 'Surfboard',
description: 'Fun'
},
{
object: 'house',
description: 'home'
}
];
1
Add a comment...
Story
Tagline
Passionate about work, family and surfing.
Introduction
I love surfing :)  
Education
  • Wadebridge Comprehensve
    1990
Basic Information
Gender
Male
20 reviews