Photos from the garden
[minor pseudonymising edits during Drupal to hugo migration for all the good that will do now]
A friend introduced the kids to the My Little Pony remake some time ago and with the starting of this blog post this song stuck in my brain (had no help whatsoever from the kids watching it a few times ;).
So I’m a bit late for “tomorrow spring is here”, we’re about halfway through the first month of spring as humans like to count it. I think spring came a bit earlier than September. As far as I’m concerned it’s spring when the weather and the flowers say it’s spring.
Drupal 7 notes: unsetting formatting tips
Following on from hiding unwanted elements in comment forms, I found this tip on one of the many threads in Drupal of people trying to hide the pesky formatting guidelines and came up with:
template.php
<?php
function [theme_name]_form_comment_form_alter(&$form, &$form_state, $form_id)
{
$form['comment_body']['#after_build'][] = 'remove_tips';
}
function remove_tips(&$form)
{
unset($form['und'][0]['format']['guidelines']);
unset($form['und'][0]['format']['help']);
return $form;
}
?>
That gets rid of everything but the fieldset container and for the roles that can use multiple text formats, the select box (the “Text format” label can be easily removed with $form['und'][0]['format']['format']['#title'] = '';
in the comment_form_alter
).
You're doing it wrong
Here was supposed to be yet another whingepost about how I’m doing everything wrong and there is now nothing that I “can” drop. So I’m going to see if I can somehow write myself into doing “it” right.
The computer room is a f***ing mess
There is more crap than there should be on the desk. Most of it is paper that needs to be filed or recycled, and I have just been too damn lazy to process them into the appropriate location.
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