Obvious point of view shift?
Last night’s bizarro dream is probably going to prompt interpretations of changing points of view or something to that effect. It was my first thought when I finally managed to peel my eyes open this morning.
I was in what appears to be my room at Crazy Dog House (big room, always same layout, sometimes differently decorated, though the bed appears built in or extremely heavy as it doesn’t appear to move or change), I found some old contacts (which I have never owned never mind seen before) in crazy colours. I got it into my head to try them on.
Not quiet on the !schooling front
[minor pseudonymising edits during Drupal to hugo migration for all the good that will do now]
I just haven’t been writing about it.
Last week, 6yo drew a picture of Venom from Spiderman with black whiteboard marker on paper, including sounding out the name and checking with JJ after writing it out.
This week just gone has been crazy.
Is [this] a [that] killer?
I hang around on LinkedIN. With Google+ in its invite-only “field trial” stage and people writing blog posts raving about it, LI’s Questions have been inundated (or maybe people just aren’t reading before posting, how unusual) with “Is Google+ a Facebook killer?” style questions.
Same question all over teh interwebz by anyone who cares to write a blog post about it.
Other similar ones that pop up are “Is [this shiny new Blackberry|Android thing] an iPhone killer”?
Back to the house on the cliff
[minor pseudonymising edits during Drupal to hugo migration for all the good that will do now]
The vege garden was a freaking mess. I noticed it when we arrived at the house. We hadn’t needed the excessive driveway down the side so had converted it into a slightly wider than driveway half acre long vege strip. And there were weeds and elephant ear ferns growing all through it.
I informed JJ that I was going to get rid of the weeds. I intended my gloves into existance (I didn’t go get them, they just appeared in my hands and I put them on) and got to work. A few weeds later the patch was not only clear, it was also thriving with many veges not far off harvest.
Drupal 7 notes: node--[type].tpl.php being ignored
If you change the machine name of a content type, make sure you bump all the nodes that were created under the old machine name. If that doesn’t work or there are too many of them, change them in the database.
In the below example I was trying to theme the “estimate” nodes with node–estimate.tpl.php. It wasn’t working because node 1 in this case still had the original type of “screen”.
Drupal 7 notes: the submit button on the node creation form isn't working!
In template.php
:
<?php
function [theme-name]_theme($existing, $type, $theme, $path)
{
return array
(
'[content-type]_node_form' = array(
'render element' =>
'form', 'template' => 'node--[content-type]-form', )
);
}
?>
If you keep template files in a subdirectory (eg sites//all/themes/[theme-name]/templates
or something to that effect) this may help:
'path' => drupal_get_path('theme', '[theme-name]') . '/subfolder',
After you’ve put all your fields where you want them in your pretty node--type.tpl.php
:
<?php
echo render($form['title']);
echo render($form['field_[field_name]']);
// etc
// with whatever formatting around it
?>
At the end put
World has problems. Quit the rhetoric and fix it.
[minor pseudonymising edits during Drupal to hugo migration for all the good that will do now]
[I was leeching a bunch of images which have since vanished]
What I love best about my current job is the inclination of the supervisor to tend towards wanting to “get shit done”. As with all large projects (and it is a decent sized Drupal project we’re working on), you want to plan it as best you can to try to minimise stuff-ups and associated explosions down the track.
Wacky wednesday
[minor pseudonymising edits during Drupal to hugo migration for all the good that will do now]
Yesterday, it seemed like it was going to rain just enough to be annoying for walking to the shops down the road (but not for the dams, more rain is good for dams), so I decided to drive to Carousel and let the kids have a play at the playground before grabbing snacks and doing the top up shopping.
Reading and writing
[minor pseudonymising edits during Drupal to hugo migration for all the good that will do now]
2yo loves being read to, and is constantly bringing books to us and demanding “Wead book!”
I can also say “duduk” to him and he will sit down. All three kids understand “makan” and “bagus” (6yo used to pronounce it “ba-goo-doos” when he was 2yo’s age :) and that’s as far as I’ve gotten with Malay; my vocabulary is shocking and grammar non-existant.
Drupal 7 notes: unserialize() and undefined index notices after importing users from a csv
Long title is going to break my pretty layout.
So following on from the task of having to import a csv file of users into Drupal 6, I upgraded that install of Drupal 6 to 7, then exported the users, user roles and role tables into csv files for insertion into the database at work. Of course I had to test it out on my local to make sure nothing was too broken.