Import https://www.zengenuity.com/ en The Week in Drupal: February 11, 2011 https://www.zengenuity.com/blog/2011-02/week-drupal-february-11-2011 <span class="field field--name-title field--type-string field--label-hidden">The Week in Drupal: February 11, 2011</span> <div class="paragraph html"> <div class="container"> <p>A look at interesting new modules, articles and other <a href="https://drupal.org">Drupal</a> news from February 4 - 11, 2011.</p> <p><a href="https://www.flickr.com/photos/kaibara/5266826588/" title="Frozen Drops by kaibara87, on Flickr"><img src="https://farm6.static.flickr.com/5290/5266826588_3be09b9924.jpg" alt="Frozen Drops" width="500" height="333" /></a></p> <h2>Drupal News</h2> <p><strong><a href="https://www.lullabot.com/blog/drupal-gets-grammys-again">Drupal Gets the GRAMMYs Again</a></strong></p> <h2>Great Posts and Tutorials This Week</h2> <p><strong><a href="https://atendesigngroup.com/blog/drupal-imports-using-feeds-module">Importing CSV Files with Feeds - Screencast and Tutorial</a></strong></p> <p><strong><a href="https://24b6.net/2011/02/10/non-local-files-drupal-6">Handling Non-Local Files (e.g. Amazon S3-hosted files) with Drupal 6</a></strong></p> <p><strong><a href="https://www.trellon.com/content/blog/upgrading-modules-drupal-7">Upgrading Modules to Drupal 7</a></strong></p> <h2>Interesting New Modules</h2> <p><strong><a href="https://drupal.org/project/css_watch">CSS Watch</a></strong> - This thing is a AWESOME! Automatically updates your CSS without a browser refresh. For use when you are creating a custom theme. This is going to save so much time. Watch the screencast here: <a href="https://www.youtube.com/watch?v=FSDxm50_obI&hd=1">https://www.youtube.com/watch?v=FSDxm50_obI&hd=1</a></p> <p><strong><a href="https://developmentseed.org/blog/2011/feb/10/ideation-feature-released-open-atrium">Ideation Feature for Open Atrium</a></strong> - Allow users to submit ideas and vote on them. </p> <p><strong><a href="https://drupal.org/project/simpleshare">Simpleshare</a></strong> - Allow users to post a link to their Drupal content on <a href="https://www.facebook.com">Facebook</a> or <a href="https://twitter.com">Twitter</a> with a simple interface that appears saving a node.</p> <p><strong><a href="https://drupal.org/project/uc_order_clone">UC Order Clone</a></strong> - Make duplicates of orders in <a href="https://ubercart.org">Ubercart</a>.</p> <p><strong><a href="https://drupal.org/project/privatemsg_bulkmail">Privatemsg Bulkmail</a></strong> - Send messages to all your users with the <a href="https://drupal.org/project/privatemsg">Privatemsg module</a>.</p> <p><strong><a href="https://drupal.org/project/jquery_pause">jQuery Pause</a></strong> - Easily add pauses to jQuery events, like the ones from <a href="https://drupal.org/project/views_slideshow">Views Slideshow</a>.</p> <p><strong><a href="https://drupal.org/project/bookchapters">Book Chapters</a></strong> - Add automatically-numbered chapters to your content with the Book module.</p> </div> </div> <span>Wayne Eaker</span>February 11, 2011 <div class="tags"> <div class="container"> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/drupal" hreflang="en">Drupal</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/drupal-7" hreflang="en">Drupal 7</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/facebook" hreflang="en">Facebook</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/import" hreflang="en">Import</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/jquery" hreflang="en">jQuery</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/open-atrium" hreflang="en">Open Atrium</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/theming" hreflang="en">Theming</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/twitter" hreflang="en">Twitter</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/ubercart" hreflang="en">Ubercart</a></span> </div> </div> Fri, 11 Feb 2011 11:00:00 +0000 Wayne Eaker 130 at https://www.zengenuity.com The Week in Drupal: January 28, 2011 https://www.zengenuity.com/blog/2011-01/week-drupal-january-28-2011 <span class="field field--name-title field--type-string field--label-hidden">The Week in Drupal: January 28, 2011</span> <div class="paragraph html"> <div class="container"> <p>A look at interesting new modules, articles and other <a href="https://drupal.org">Drupal</a> news from January 21 - 28, 2011.</p> <p><a href="https://www.flickr.com/photos/cocreatr/2244317378/" title="Ice drops on purple by CoCreatr, on Flickr"><img src="https://farm3.static.flickr.com/2001/2244317378_b1484eba41.jpg" alt="Ice drops on purple" width="500" height="333" /></a></p> <h2>Great Posts and Tutorials This Week</h2> <p><strong><a href="https://www.leveltendesign.com/blog/randall-knutson/collapsing-folders-taxonomy-and-views-tree">Collapsing Folders with Taxonomy and Views_tree</a></strong></p> <p><strong><a href="https://developmentseed.org/blog/2011/jan/25/using-open-atrium-innovation-platform-department-education"><strong>Using Open Atrium as an Innovation Platform at the Department of Education</strong></a></strong></p> <p><strong><strong><a href="https://cyrve.com/import">Performing a data migration with the Migrate module</a></strong></strong></p> <p><strong><strong><a href="https://www.advantagelabs.com/quick-and-easy-donation-with-pay">Quick and Easy Donations with the Payment API</a></strong></strong></p> <p><strong><strong><a href="https://www.metaltoad.com/blog/top-5-reasons-choose-drupal-your-cms"><strong>Top 5 Reasons to Choose Drupal as your CMS</strong></a></strong></strong></p> <p><strong><a href="https://www.appnovation.com/drupal-tip-using-formafterbuild">Drupal Tip: Using $form['#after_build']</a></strong></p> <h2>Interesting New Modules</h2> <p><strong><a href="https://drupal.org/project/livethemer">Live Themer </a></strong>- Wow! Awesome! Build a theme for your Drupal site, live on the site, without writing code. <a href="https://marmaladesoul.com/livethemer">Check out the video demo to see how it works.</a></p> <p><strong><a href="https://drupal.org/project/vppr">Vocabulary Permissions Per Role</a></strong> - Allow users to edit only specific taxonomy vocabularies.</p> <p><strong><a href="https://drupal.org/project/fast_404">Fast 404</a></strong> - Render 404 pages for images, etc., without a full Drupal page load. Will help performance on busy sites.</p> <p><strong><a href="https://drupal.org/project/date_repeat_instance">Date Repeat Instance</a></strong> - Allows you edit a single instance of a repeating Date created with the <a href="https://drupal.org/project/date">Date</a> module.</p> <p><a href="https://drupal.org/project/flot_charts"><strong>Flot Charts for Views</strong></a></p> <p><strong><a href="https://drupal.org/project/incremental_deploy">Incremental Deploy</a> </strong>- Automatically schedule nodes and system settings for deployment (with the <a href="https://drupal.org/project/deploy">Deploy</a> module) as they are changed.</p> <p><strong><a href="https://drupal.org/project/cck_match">CCK Match</a></strong> - Double text field that requires users to type the same thing twice. For phone numbers, emails, etc.</p> </div> </div> <span>Wayne Eaker</span>January 28, 2011 <div class="tags"> <div class="container"> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/date-module" hreflang="en">Date module</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/deploy-module" hreflang="en">Deploy module</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/drupal" hreflang="en">Drupal</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/import" hreflang="en">Import</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/payment-api" hreflang="en">Payment API</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/taxonomy-module" hreflang="en">Taxonomy module</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/theming" hreflang="en">Theming</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/views-module" hreflang="en">Views module</a></span> </div> </div> Fri, 28 Jan 2011 22:10:16 +0000 Wayne Eaker 128 at https://www.zengenuity.com How to Import Files into Drupal CCK Fields https://www.zengenuity.com/blog/2010-11/how-import-files-drupal-cck-fields <span class="field field--name-title field--type-string field--label-hidden">How to Import Files into Drupal CCK Fields</span> <div class="paragraph html"> <div class="container"> <p>At last night's <a href="https://groups.drupal.org/ann-arbor">Ann Arbor Drupal Meetup</a>, a question was raised about how to write an import script to create <a href="https://drupal.org">Drupal</a> nodes that include a <a href="https://drupal.org/project/filefield">Filefield CCK</a> field. Filefields and <a href="https://drupal.org/project/imagefield">Imagefields</a> present a particular problem for import because the file must be stored into the Drupal files table before you can save them to the node. In the discussion that followed, it seemed that several of us at the meeting had developed our own ways to do this in the past for various reasons. So, I thought I would post a couple solutions for others who need to do this.</p> <h2>Option 1: Read the Manual</h2> <p>There is <a href="https://drupal.org/node/330421">a manual page that explains how to programmatically import files to Filefield</a>. However, like many Drupal manual pages, if you read through the comments, there are about 20 different versions of the code, and the discussion is often difficult for novice users to follow. The code on this page does work, but there is something simpler that we ended up with at the meeting.</p> <h2>Option 2: Use a Helper Function</h2> <p>The Filefield module has a helper function called <a href="https://api.lullabot.com/field_file_save_file">field_file_save_file()</a> that does a lot of the work for you. To use the function, you just need to give the original file path and a destination path if you want the file copied into a new location. Here's a simple example of a script that creates a story node and imports an image file into the "field_image" CCK field. (The file importing lines are highlighted.)</p> <pre><pre class="[8,9]'"> <?php $node = new StdClass(); $node->type = 'story'; $node->body = 'Testing.'; $node->title = 'Testing'; $file = field_file_save_file('import-images/buzz2.jpg', array(), 'sites/default/files/images'); $node->field_image = array($file); $node->uid = 1; $node->status = 1; node_save($node); </pre></pre> <p>This script can't be run on the command line without some other include lines to bootstrap the Drupal system. However, if you use <a href="https://drupal.org/project/drush">Drush</a> (and you should be using Drush), you don't need to do anything extra. Just run "<span><strong><span>drush scr import.php</span></strong></span>". That's it. Adding those two lines to your import script is all need to do to import files to Filefield CCK fields. Easy to do now that you know.</p> <p>If you have any questions or problems using the method above, leave a comment below, and I'll see if I can help you out.</p> </div> </div> <span>Wayne Eaker</span>November 30, 2010 <div class="tags"> <div class="container"> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/ann-arbor" hreflang="en">Ann Arbor</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/drupal" hreflang="en">Drupal</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/drupal-planet" hreflang="en">Drupal Planet</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/filefield-module" hreflang="en">Filefield module</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/imagefield-module" hreflang="en">Imagefield module</a></span> <span class="tag"><a href="https://www.zengenuity.com/blog/tags/import" hreflang="en">Import</a></span> </div> </div> Tue, 30 Nov 2010 15:28:12 +0000 Wayne Eaker 120 at https://www.zengenuity.com