Spring's First Flowers


April 1, 2012, my how time flies.  I have decided to keep a online journal for my garden.  My garden bring me an immense amount of pleasure.  I have been asked many times how much work it takes to maintain, and I just smile.  For me it is not work, it is a labor of love.  
The crocus are in bloom, what a site! About a week ago, Aiden and I uncovered the crocus leaves.  They were just coming up.  In the fall I mulch around my Rowan trees (where the crocus are).  In the spring I remove the mulch and put it on the plants on the south hillside.  The mulch will help them maintain moisture during the summer heat.  I did the same from the strawberry bed as well.  The maple leaves cover the bed during the winter, and then they are taken to the hillside.  Most blow away in the wind, but some stay.  

Today Karl and I cleaned around the yard.  I straightened up my potting area.  It was quite the mess.  I will start plants some time this week, depending on which day Dallas wants to come join me.  Dallas is my 6 year old grandson who LOVES to garden. He has his own seeds and will arrive with a 'plan' and woe to anyone who gets in the way.  

On a side note - I use Shrink-O-Matic to resize images for the website.  Quick, easy and free.  

Gallery

Hello, me again,

I've got a lovely gallery working in D7, the Gallery Formatter will work, if you tinker around with it, there's no documentation, as the guy who's producing it doesn't really want people using it yet.
http://drupal.org/project/galleryformatter

There's a screencast, it threw me a bit, because it first says you need to edit the field, this is only the case for the D6 version it turns out, just make one image field in your gallery content type, then go to 'Manage Displays', select jQuery Gallery' from the drop down menu. The default settings are working fine for me. Then all I had to do is upload some images & hey presto, a really sweet, smooth & pretty sexy gallery. It's all slidey-that-way & fadey-in-&-out. It's awesome :) Now I've just gotta figure out the localisation...!

Hope you haven't had to go with something else by now!

nx
    http://drupal.org/node/1026360
 

DDBlock Multiple Views

There has to be a way to create a block and have it show as a ddblock slide show, but it's not working as I expected.  Rather than delve into the code, I decided to just create another view.  Adding the view and the taxonomy was easy.  Getting it to show required adding another two functions to the preprocessor functions in the template.php file. 

Frustration and Magic

I've told lots and lots of people to make a plan for their website.  And as I sit here creating the www.ArleeMontana.com website I have a general outline, yet when I get to the individual pages and the artwork involved I feel like I'm without a plan.  There is a magic that happens for me when I can create outside of structure. 

Drupal - ddblock Module

Well, somehow I keep losing the images in the ddblock module.  I love the functionality and how it works.  I do not like having my variable names rewritten for me.  This time I'm going to take notes. 

  1. When does it happen?

Basically, when I add a module, it seem to rewrite varaible names.  I'm not sure why.  The last time it happened I was able to uncomment the error checking lines in the template.php file, it printed out what the array was.  I could find the variable name.  I could see the values for the image.

  1. What is different this time?

Well, the image variable is not there at all. This was my error, I had un-commented the wrong lines.

  1.  Uncomment the set messages in the template.php file

There are two functions in the template file.  The important one is the top function,function [THEME_NAME]_preprocess_ddblock_cycle_block_content.  For some weird reason, kept working with a different function. To much on my plate, I was not paying close enough attention.  99% of the time it's the simple things that take so much time....

drupal_set_message('<pre>' . var_export($vars['settings']['view_name'], true) . '</pre>');
   drupal_set_message('<pre>' . var_export($vars['content'][0], true) . '</pre>');'news_items'

These two lines of code printed this information out to the screen:

stdClass::__set_state(array(
   'nid' => '4',
   'node_title' => 'Montana At Her Best',
   'node_data_field_pager_item_text_field_pager_item_text_value' => 'Nature',
   'node_type' => 'ddblock_news_item',
   'node_vid' => '4',
   'node_data_field_pager_item_text_field_slide_text_value' => '
 Drive through a buffalo herd, watch a grand elk wade it's way through a river, hike to a mountain top and watch the sun dance on distant peaks. Come and Explore Arlee!
',
   'node_data_field_image_field_image_fid' => '23',
   'node_data_field_image_field_image_list' => '1',
   'node_data_field_image_field_image_data' => 'a:2:{s:3:"alt";s:0:"";s:5:"title";s:0:"";}',
   'node_revisions_body' => '',
   'node_revisions_format' => '2',
I have put the line in bold that is the variable for the image.
  1.  The next step is to adjust the preprocessor functions in the template.php file.
 I changed this line: node_data_field_pager_item_text_field_image_fid to this line: node_data_field_image_field_image_fid. 
I now have images again - until I push another button.  This makes me uneasy, but the functionality is pretty kewl....so I'll play the game.  Now that I have the notes I need the next time the error shows up, I'm a tad more relaxed. 
Good tutorial at: http://ddblock.myalbums.biz/faq#19n881

 

Hardware Challenges

I bought a web cam, a wonderful high def webcam (Mobotix M24) and I love it - with one exception.  The cam needs power to run, so they have created a power adapter to put power over USB.  Mine slowly failed.  Since I made the cables, I assumed that the problem was with the cable.  So I replaced ends, rewired and pulled out my hair.  Only when I stood there and without touching anything watched the lights come and go.  The cables worked when I attached my web cam, but would be sporadic when I put the cam on lline.  Was I glad to have an answer! 

Now testing the media upload

Now, I'm checking to see if I can access the media files I have uploaded.

Playing with Media

Ok, I tested the Media field by adding a new field to the blog content type.  The new field is a Media Asset.  I allowed up to 8 items, but only chose to upload 2.

Pages