Profile

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

Stream

DJ Millward

Shared publicly  - 
It’s often the forgotten journey, one in which little time and budget is afforded. As someone who has plenty of experience programming in other Content Management Systems (CMS), it’s an area I felt where the  Drupal admin screens out of the box fall a little short.
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Drupal 7 - Error Reported in log - array_splice() expects parameter in template.php
In Report Logs we we’re getting these errors on Clearing the Cache.   Warning : array_splice() expects parameter 1 to be array, null given in omega_theme_registry_alter() (line 458 of */sites/all/themes/contrib/omega/omega/template.php ). Warning : array_se...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Drupal 7 Form API - Reveal Input on drop down condition
Here’ the task :  I have a drop down list , a simple ‘yes’ or ‘no’  .  If yes fill in the the input box.  At first I thought this would need a simple Ajax form call but in fact its even easier than that.   We can use the ‘States’ and ‘visible’ values of the...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Modular CSS with Sass notes.
The @content  directive lets us pass custom styles to a mixin when including it. With SMACSS, element state selectors are usually prefixed with .is-  The @at-root directive lets us nest a Sass rule without nesting the output. In a conditional mixin, which d...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Drupal 7 Theme TouchM make Portfolio Images Link to Node or Page.
> Copy these two pages from sites/all/modules/tabvn/portfolio/     portfolio_4c.tpl.php portfolio_filter.tpl.php >  Paste them into sites/all/themes/touchm/templates > OPEN  /sites/all/themes/custom/touchm/templates/portfolio_4c.tpl.php CHANGE LINE 35 to . 
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Some tips on checking your code in Drupal
Before I start it's worthy of note that this is not really a blog but more of a place where I copy and paste my own notes on things.  If the following is of help to anyone then thats great also.  Conversation on better techniques are also more than welcome....
Before I start it's worthy of note that this is not really a blog but more of a place where I copy and paste my own notes on things.  If the following is of help to anyone then thats great also.  Conversation on better techni...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Drupal 7 Taxonomy Ordering
What I need to do was Order my taxonomy from Parent to Child . There are a couple of solutions to this; but I had issue with both .  Lets have a look at those first before I give my programmatical solution. Hierarchal Term Formatter : https://www.drupal.org...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Drupal 7 - Adding a Delete Button to open in Modal PopUp
The task here was to add to existing code ; where we where adding a delete button like those being called in an already existing module. The task check list.  1. Find a delete Quiz result function in the Quiz module.   If there isn’t one this will need to b...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Drupal 7 how to save values to an Entity in Form Submit.
Yes you can add a field with a db_query like this $myfield_updated = db_update('quiz_node_results') ->fields(array( 'myfield' => $myinfo , )) ->condition('entity_id', $entity_id, '=') ->execute(); but it's better to do it with Entity_Metadata_wrapper in you...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
drupal 7 how to create a new field on an existing entity
A simple task when you know the answer but one I found difficult to find in Google.  What I had done in a hacky way was to add a field manually in SQL that I wanted to add to an existing Entity.   The field itself was being filled by a module that used a ho...
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Drupal 7 Views Display SQL Query
How to display the SQL query on Views. admin/structure/views/settings  tick ‘Show the SQL query’
1
Add a comment...

DJ Millward

Shared publicly  - 
 
Drupal 7 views search api add displaying count
If you'd like to let your users know how many search terms there has been on a search then . Go to the View you are using for the search page . administration > Structure > Views > go to the display you are on  ie 'page' > in the middle panel find 'HEADER' ...
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