<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wordpress VS Drupal</title>
	<atom:link href="http://blog.hsl.virginia.edu/drupalpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hsl.virginia.edu/drupalpress</link>
	<description>Learning the Power of Wordpress and Drupal</description>
	<lastBuildDate>Fri, 11 May 2012 11:41:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Form in Block &#8211; a hack for getting node/add forms into solr search results</title>
		<link>http://blog.hsl.virginia.edu/drupalpress/form-in-block-node-add-solr-search/</link>
		<comments>http://blog.hsl.virginia.edu/drupalpress/form-in-block-node-add-solr-search/#comments</comments>
		<pubDate>Fri, 11 May 2012 11:41:38 +0000</pubDate>
		<dc:creator>alibama</dc:creator>
				<category><![CDATA[Planet_Drupal]]></category>
		<category><![CDATA[admin toolbar]]></category>
		<category><![CDATA[context]]></category>
		<category><![CDATA[context editor]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[form block]]></category>
		<category><![CDATA[node/add]]></category>
		<category><![CDATA[search results]]></category>
		<category><![CDATA[solr]]></category>

		<guid isPermaLink="false">http://blog.hsl.virginia.edu/drupalpress/?p=585</guid>
		<description><![CDATA[Use Case: We want patrons to find our forms easily.  If they need help finding something they should be able to go to a search bar, type in &#8220;consultation request&#8221;  and get to our consultation request form. The Challenge:  First &#8230; <a class="more-link" href="http://blog.hsl.virginia.edu/drupalpress/form-in-block-node-add-solr-search/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Use Case</strong>: We want patrons to find our forms easily.  If they need help finding something they should be able to go to a search bar, type in &#8220;consultation request&#8221;  and get to our consultation request form.</p>
<p><strong>The Challenge</strong>:  First off Solr doesn&#8217;t index the node/add/your-content-type-here pages by default &#8211; I&#8217;m certain there&#8217;s some workaround, however it&#8217;s not obvious (dear readers are welcome to retort).  Secondly none of the form results should be indexed by solr in the first place &#8211; we certainly don&#8217;t need our patron&#8217;s requests showing up anywhere ever.</p>
<p><strong>The Hack</strong>: <a href="http://drupal.org/project/formblock">Form Block</a> allows you to make content types available as blocks.  Pretty straightforward, click a few buttons, go to the context editor, and woo-ha = forms in a block = we took the pages that were already returning for the queries we were interested in and just added the form to those pages.</p>
<p>Here&#8217;s the VERY brief overview &#8211; 1:30 seconds or so worth <a href="http://www.youtube.com/watch?v=gzvq-t1m03A">http://www.youtube.com/watch?v=gzvq-t1m03A</a> that goes over turning a content type into a block as well as adding the block to a <a href="http://drupal.org/project/context">context</a> using the context editor that comes with the <a href="http://drupal.org/project/admin">admin</a> toolbar</p>
<div id="attachment_589" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/05/Screen-Shot-2012-05-10-at-1.06.01-PM.png"><img class="size-medium wp-image-589" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/05/Screen-Shot-2012-05-10-at-1.06.01-PM-300x221.png" alt="Form Block settings in content type" width="300" height="221" /></a><p class="wp-caption-text">Form Block settings in content type</p></div>
<p>Now is also a good time to mention that if you are using context&#8217;s the Admin toolbar is almost required &#8211; it really extends the UI giving you a drag and drop interface for your blocks within every context active on a given page.</p>
<div id="attachment_590" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/05/Screen-Shot-2012-05-10-at-1.07.26-PM.png"><img class="size-medium wp-image-590" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/05/Screen-Shot-2012-05-10-at-1.07.26-PM-300x178.png" alt="Adding node form in the context editor" width="300" height="178" /></a><p class="wp-caption-text">Adding node form in the context editor</p></div>
<div id="attachment_592" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/05/Screen-Shot-2012-05-10-at-1.08.03-PM.png"><img class="size-medium wp-image-592" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/05/Screen-Shot-2012-05-10-at-1.08.03-PM-300x180.png" alt="Form Nodes in context Editor" width="300" height="180" /></a><p class="wp-caption-text">Form Nodes in context Editor</p></div>
<div id="attachment_593" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/05/Screen-Shot-2012-05-10-at-1.09.13-PM.png"><img class="size-medium wp-image-593" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/05/Screen-Shot-2012-05-10-at-1.09.13-PM-300x237.png" alt="A form in a block!" width="300" height="237" /></a><p class="wp-caption-text">A form in a block!</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.hsl.virginia.edu/drupalpress/form-in-block-node-add-solr-search/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mo betta form UI with Jammer and StringOverrides</title>
		<link>http://blog.hsl.virginia.edu/drupalpress/mo-betta-form-ui-with-jammer-and-stringoverrides/</link>
		<comments>http://blog.hsl.virginia.edu/drupalpress/mo-betta-form-ui-with-jammer-and-stringoverrides/#comments</comments>
		<pubDate>Thu, 10 May 2012 16:37:24 +0000</pubDate>
		<dc:creator>alibama</dc:creator>
				<category><![CDATA[Planet_Drupal]]></category>
		<category><![CDATA[jammer]]></category>
		<category><![CDATA[stringoverrides]]></category>
		<category><![CDATA[taxonomy super select]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://blog.hsl.virginia.edu/drupalpress/?p=579</guid>
		<description><![CDATA[Use case: Our patrons don&#8217;t really think of &#8220;saving&#8221; their class signups, nor do they often care to preview the request form that they recently filled in. Quick solution: Using Jammer (admin/settings/jammer) we are able to easily remove the preview &#8230; <a class="more-link" href="http://blog.hsl.virginia.edu/drupalpress/mo-betta-form-ui-with-jammer-and-stringoverrides/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Use case:  Our patrons don&#8217;t really think of &#8220;saving&#8221; their class signups, nor do they often care to preview the request form that they recently filled in.</p>
<p>Quick solution: Using <a href="http://drupal.org/project/jammer">Jammer</a> (admin/settings/jammer) we are able to easily remove the preview (delete, or submit) button on selected content types.  This is also a place to remove path, menu, author and several other fields.</p>
<div id="attachment_580" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/05/Screen-Shot-2012-05-10-at-12.13.23-PM.png"><img class="size-medium wp-image-580" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/05/Screen-Shot-2012-05-10-at-12.13.23-PM-300x166.png" alt="Jammer - remove preview" width="300" height="166" /></a><p class="wp-caption-text">Jammer - remove preview</p></div>
<p>Saving makes sense for admins, however our patrons really don&#8217;t think of saving their work &#8211; they&#8217;re submitting requests. Making a happier UI is part of the work we do to keep our patrons around, so we use more vernacular terms to mo betta stuff.  The obvious limitation here is that it overrides EVERY string rendered</p>
<div id="attachment_581" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/05/Screen-Shot-2012-05-10-at-12.23.34-PM.png"><img class="size-medium wp-image-581" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/05/Screen-Shot-2012-05-10-at-12.23.34-PM-300x140.png" alt="Simple string overrides simplify succinctly" width="300" height="140" /></a><p class="wp-caption-text">Simple string overrides simplify succinctly</p></div>
<p>in drupal (not in the content, of course)</p>
<p>If anyone knows of a module that&#8217;ll let us customize buttons on a per content basis please chime in &#8211; not interested in writing tpl.php&#8217;s for every one of these though &#8211; it&#8217;s just not that big a deal yet. Speaking of UI thanks Vid @ the University of Oregon (rss added to the left here) for their work with <a href="http://drupal.org/project/taxonomy_super_select">Taxonomy Super Select</a> Styling <a href="http://pages.uoregon.edu/vid/2011/01/21/put-taxonomy-super-select-check-boxes-into-1-2-or-3-columns/">http://pages.uoregon.edu/vid/2011/01/21/put-taxonomy-super-select-check-boxes-into-1-2-or-3-columns/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hsl.virginia.edu/drupalpress/mo-betta-form-ui-with-jammer-and-stringoverrides/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JSON Feeds and JSON Views &#8211; UVa Health Sciences Web Services</title>
		<link>http://blog.hsl.virginia.edu/drupalpress/json-views-drupal-6-uva-health-sciences-web-services/</link>
		<comments>http://blog.hsl.virginia.edu/drupalpress/json-views-drupal-6-uva-health-sciences-web-services/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 18:31:27 +0000</pubDate>
		<dc:creator>alibama</dc:creator>
				<category><![CDATA[Planet_Drupal]]></category>
		<category><![CDATA[apache solr]]></category>
		<category><![CDATA[doug chestnut]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[json feeds]]></category>
		<category><![CDATA[uva web services]]></category>
		<category><![CDATA[views datasource]]></category>
		<category><![CDATA[virgo]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://blog.hsl.virginia.edu/drupalpress/?p=556</guid>
		<description><![CDATA[JSON is a data exchange tool that has some distinct advantages over XML as Dare Obasanjo notes.  Using Feeds JSON Path Parser to ingest JSON and Views Datasource to output JSON we are hoping to open up our data to &#8230; <a class="more-link" href="http://blog.hsl.virginia.edu/drupalpress/json-views-drupal-6-uva-health-sciences-web-services/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>JSON is a data exchange tool that has some distinct<a href="http://www.25hoursaday.com/weblog/PermaLink.aspx?guid=060ca7c3-b03f-41aa-937b-c8cba5b7f986"> advantages over XML as Dare Obasanjo</a> notes.  Using <a href="http://drupal.org/project/feeds_jsonpath_parser">Feeds JSON Path Parser</a> to ingest JSON and <a href="http://drupal.org/project/views_datasource">Views Datasource</a> to output JSON we are hoping to open up our data to web services.  This tutorial is just about Views Datasource, hopefully we&#8217;ll get on the eating side of things with feeds soon!</p>
<p>For the two minute magic here you go <a href="http://www.youtube.com/watch?v=yc9Uc-2WczI">http://www.youtube.com/watch?v=yc9Uc-2WczI</a></p>
<p>Usually when we write up documentation it&#8217;s to explain something we understand reasonably well (or at least think we do) on this post we&#8217;re grateful to<a href="http://people.virginia.edu/~dhc4z/"> Doug Chestnut</a> over at Alderman for recommending JSON, <a href="http://drupal.org/user/473738">twistor</a> and <a href="http://drupal.org/user/48424">infojunkie</a> at drupal.org for banging up some code.</p>
<p>This is just a brief review of a simple views plugin with a lot of potential. In general it is becoming more and more apparent that having web services is rapidly eclipsing the value of web sites.  Web services means being able to extend your integral core data to other developers without the shrouds of silly design and such that stem from institutional committee design.  Put the data in the hands of designers and let them run with it.</p>
<div id="attachment_572" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-24-at-2.17.36-PM.png"><img class="size-medium wp-image-572" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-24-at-2.17.36-PM-300x214.png" alt="Settings for JSON " width="300" height="214" /></a><p class="wp-caption-text">Settings for JSON </p></div>
<p>All said and done what this means for developers who may have a use for our electronic journals and books data is that by changing a URL they may have direct access to our work as JSON objects &#8211; something that <a href="http://www.lucidimagination.com/blog/2010/12/08/indexing-json-in-solr-3-1/">SOLR may ingest directly as of 3.1</a> &#8211; for an example on our development server <a href="http://drupal.hsl.virginia.edu/e-resource-journals-json/Biochemistry">http://drupal.hsl.virginia.edu/e-resource-journals-json/Biochemistry</a> now returns the JSON output of the regular taxonomy view <a href="http://drupal.hsl.virginia.edu/e-resource-journals-taxonomy/Biochemistry">http://drupal.hsl.virginia.edu/e-resource-journals-taxonomy/Biochemistry</a></p>
<div id="attachment_571" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-24-at-2.17.19-PM.png"><img class="size-medium wp-image-571" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-24-at-2.17.19-PM-300x179.png" alt="JSON Style in views" width="300" height="179" /> </a><p class="wp-caption-text">JSON Style in views</p></div>
<p>&nbsp;</p>
<p>Of course now that we have all these lovely services who is it we&#8217;re servicing?  That&#8217;s a question we&#8217;re still working on the answer to, however given that UVa&#8217;s main library is outputting JSON and running SOLR we&#8217;re hoping we may be able to streamline and consolidate some of our work for our patrons  (fyi for the VIRGO JSON the string change is slightly different <a href="http://search.lib.virginia.edu/catalog?q=chestnut">http://search.lib.virginia.edu/catalog?q=chestnut</a> now becomes <a href="http://search.lib.virginia.edu/catalog.json?q=chestnut">http://search.lib.virginia.edu/catalog.json?q=chestnut</a>- still a simple way of handling data objects.</p>
<p><strong>Additional resources: </strong></p>
<p><a href="http://jsonviewer.stack.hu/">http://jsonviewer.stack.hu/</a> a handy tool for JSON viewing</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hsl.virginia.edu/drupalpress/json-views-drupal-6-uva-health-sciences-web-services/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Views Fluid Grid + taxonomy term view + term fields = online exhibits home page</title>
		<link>http://blog.hsl.virginia.edu/drupalpress/views-fluid-grid-taxonomy-term-view-term-fields-online-exhibits-home-page/</link>
		<comments>http://blog.hsl.virginia.edu/drupalpress/views-fluid-grid-taxonomy-term-view-term-fields-online-exhibits-home-page/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 18:09:36 +0000</pubDate>
		<dc:creator>alibama</dc:creator>
				<category><![CDATA[Planet_Drupal]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[imagecache]]></category>
		<category><![CDATA[online exhibit gallery]]></category>
		<category><![CDATA[taxonomy views]]></category>
		<category><![CDATA[term fields]]></category>
		<category><![CDATA[views fluid grid]]></category>

		<guid isPermaLink="false">http://blog.hsl.virginia.edu/drupalpress/?p=560</guid>
		<description><![CDATA[Our online exhibits need an attractive home page. To make the view we decided upon Views Fluid Grid for the display (using imagecache of course to fix the width of the images). We use taxonomies extensively in our site to &#8230; <a class="more-link" href="http://blog.hsl.virginia.edu/drupalpress/views-fluid-grid-taxonomy-term-view-term-fields-online-exhibits-home-page/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Our online exhibits need an attractive home page.  To make the view we decided upon <a href="http://drupal.org/project/views_fluid_grid">Views Fluid Grid</a> for the display (using <a href="http://drupal.org/project/imagecache">imagecache</a> of course to fix the width of the images).  We use taxonomies extensively in our site to help create contexts among other things so using a term view to list all of our exhibits is a natural extension of the library philosophy.  Since not all of our exhibits are hosted on the same site we added a<a href="http://drupal.org/project/term_fields"> term field</a> to provide a space for a dedicated home page on each exhibit.  We also used taxonomy image to make the page more attractive.</p>
<div id="attachment_562" class="wp-caption alignleft" style="width: 274px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-17-at-1.45.48-PM.png"><img class="size-medium wp-image-562" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-17-at-1.45.48-PM-264x300.png" alt="Views Fluid Grid Output" width="264" height="300" /></a><p class="wp-caption-text">Views Fluid Grid Output</p></div>
<p>It&#8217;s a bit long winded at ~3 minutes, but hopefully thorough enough for anyone following along <a href="http://www.youtube.com/watch?v=j0fnqBOAj7k">http://www.youtube.com/watch?v=j0fnqBOAj7k</a></p>
<p>As a result all our archivists must do to add a new exhibit to the home page is add a new taxonomy term to the archival taxonomy and the image and term description are posted to the fluid grid page.</p>
<div id="attachment_563" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-17-at-1.52.17-PM.png"><img class="size-medium wp-image-563" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-17-at-1.52.17-PM-300x169.png" alt="Taxonomy term with a single term field " width="300" height="169" /></a><p class="wp-caption-text">Taxonomy term with a single term field </p></div>
<p>The settings within the view itself are pretty straightforward -</p>
<div id="attachment_564" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-17-at-1.53.41-PM.png"><img class="size-medium wp-image-564" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-17-at-1.53.41-PM-300x208.png" alt="Views Fluid Grid settings" width="300" height="208" /></a><p class="wp-caption-text">Views Fluid Grid settings</p></div>
<p>and the main thing to remember is that you&#8217;ll want to go to imagecache and create a scaled and cropped fixed width preset- this keeps all your pictures the same size and works well with variable sized images.</p>
<div id="attachment_566" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-17-at-2.06.00-PM.png"><img class="size-medium wp-image-566" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-17-at-2.06.00-PM-300x163.png" alt="ImageCache Presets scaled and cropped" width="300" height="163" /></a><p class="wp-caption-text">ImageCache Presets scaled and cropped</p></div>
<p>and you&#8217;ll also want to change the link output to reference your term field.  Any questions or comments welcome, take care and have a great day.</p>
<div id="attachment_565" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-17-at-1.55.26-PM.png"><img class="size-medium wp-image-565" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-17-at-1.55.26-PM-300x173.png" alt="Replace the link with your term field" width="300" height="173" /></a><p class="wp-caption-text">Replace the link with your term field</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.hsl.virginia.edu/drupalpress/views-fluid-grid-taxonomy-term-view-term-fields-online-exhibits-home-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Activity 2 =  a well made module</title>
		<link>http://blog.hsl.virginia.edu/drupalpress/activity-2-a-well-made-module/</link>
		<comments>http://blog.hsl.virginia.edu/drupalpress/activity-2-a-well-made-module/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 12:43:44 +0000</pubDate>
		<dc:creator>alibama</dc:creator>
				<category><![CDATA[Planet_Drupal]]></category>
		<category><![CDATA[activity 2]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[filters]]></category>
		<category><![CDATA[user roles]]></category>
		<category><![CDATA[views]]></category>

		<guid isPermaLink="false">http://blog.hsl.virginia.edu/drupalpress/?p=546</guid>
		<description><![CDATA[The more I use the activity module the more I like it.  It is a simple module that does one thing well = it keeps track of what is happening on the site, and it leverages other modules like core &#8230; <a class="more-link" href="http://blog.hsl.virginia.edu/drupalpress/activity-2-a-well-made-module/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The more I use the <a href="http://drupal.org/project/activity">activity module</a> the more I like it.  It is a simple module that does one thing well = it keeps track of what is happening on the site, and it leverages other modules like core Triggers, Views, and Tokens to create a useful intuitive activity page.  In our use case we wanted to have the ability to track certain roles working with certain nodes &#8211; and having the output styled in views is just icing on the cake.</p>
<p><a href="http://www.youtube.com/watch?v=Ual2-oPLIko">http://www.youtube.com/watch?v=Ual2-oPLIko</a></p>
<p>To start with you&#8217;ll need to go to /admin/build/activity/create and add activity templates.  Because of how this module was designed I believe it would be pretty simple to extend this module to monitor almost anything.. we just needed to know when certain roles updated or created certain node types, so that was pretty simple.</p>
<div id="attachment_547" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-16-at-8.03.28-AM.png"><img class="size-medium wp-image-547" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-16-at-8.03.28-AM-300x262.png" alt="Setting up an activity template" width="300" height="262" /></a><p class="wp-caption-text">Setting up an activity template</p></div>
<p>The use of<a href="http://drupal.org/project/token"> tokens </a>in the message display section makes for readable and useful messaging</p>
<div id="attachment_548" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-16-at-8.16.47-AM.png"><img class="size-medium wp-image-548" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-16-at-8.16.47-AM-300x229.png" alt="Add tokens for readability" width="300" height="229" /></a><p class="wp-caption-text">Add tokens for readability</p></div>
<p>After creating your template(s) you now need to go over to views and add an &#8220;Activity&#8221; type view &#8211; here again &#8211; it&#8217;s just so cool that you&#8217;re extending what is already there and working well&#8230; it just makes for an easier time + one less thing to learn!</p>
<div id="attachment_549" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-16-at-8.18.29-AM.png"><img class="size-medium wp-image-549" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-16-at-8.18.29-AM-300x297.png" alt="Adding the Activity in Views" width="300" height="297" /></a><p class="wp-caption-text">Adding the Activity in Views</p></div>
<p>With the View going the rules are pretty much the same as for all views &#8211; it&#8217;s worth noting that if you want to filter by User Role you&#8217;ll need to add the &#8220;Activity: User&#8221; relationship &#8211; this adds all of the typical user fields to your filters as well as your fields.  Likewise if you need more information on the nodes you may add the Activity: Node relationship &#8211; it&#8217;s not always that important since many of the information may be stored in the tokens.  It&#8217;s nice to know that you may access those fields if you need to though &#8211; just add the relationship and fields + filters as desired.  Nice work on this module folks = well thought out and well implemented.  Thanks!</p>
<div id="attachment_550" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-16-at-8.20.36-AM.png"><img class="size-medium wp-image-550" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-16-at-8.20.36-AM-300x181.png" alt="Setting up the activity views" width="300" height="181" /></a><p class="wp-caption-text">Setting up the activity views</p></div>
<div id="attachment_551" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-16-at-8.42.04-AM.png"><img class="size-medium wp-image-551" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-16-at-8.42.04-AM-300x62.png" alt="The final outcome = another view" width="300" height="62" /></a><p class="wp-caption-text">The final outcome = another view</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.hsl.virginia.edu/drupalpress/activity-2-a-well-made-module/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Views Attach &#8211; putting views into CCK</title>
		<link>http://blog.hsl.virginia.edu/drupalpress/views-attach-putting-views-into-cck/</link>
		<comments>http://blog.hsl.virginia.edu/drupalpress/views-attach-putting-views-into-cck/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 16:37:17 +0000</pubDate>
		<dc:creator>alibama</dc:creator>
				<category><![CDATA[Planet_Drupal]]></category>
		<category><![CDATA[arguments]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[node reference]]></category>
		<category><![CDATA[tokens]]></category>
		<category><![CDATA[views attach]]></category>

		<guid isPermaLink="false">http://blog.hsl.virginia.edu/drupalpress/?p=535</guid>
		<description><![CDATA[We wanted to pass information to a view from a node and have the results pulled together inline.  Using node reference CCK fields to pass our arguments along w are able to make the edit and review process simpler for &#8230; <a class="more-link" href="http://blog.hsl.virginia.edu/drupalpress/views-attach-putting-views-into-cck/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We wanted to pass information to a view from a node and have the results pulled together inline.  Using node reference CCK fields to pass our arguments along w are able to make the edit and review process simpler for our team.  For the Quick video here is your link <a href="http://www.youtube.com/watch?v=TdrugF9pAfU">http://www.youtube.com/watch?v=TdrugF9pAfU</a></p>
<div id="attachment_537" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-11-at-1.07.21-PM.png"><img class="size-medium wp-image-537" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-11-at-1.07.21-PM-300x145.png" alt="Adding the token for a referenced node" width="300" height="145" /></a><p class="wp-caption-text">Adding the token for a referenced node</p></div>
<p>We also set the build mode to &#8220;Edit page&#8221; as well as &#8220;Full Node&#8221; for convenience in editing.</p>
<div id="attachment_538" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-11-at-1.23.16-PM.png"><img class="size-medium wp-image-538" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-11-at-1.23.16-PM-300x244.png" alt="Views Attach build modes" width="300" height="244" /></a><p class="wp-caption-text">Views Attach build modes</p></div>
<p>now we can add all the fields we need from the referenced node and have them appear in your full node and node edit pages.</p>
<p>We have chosen to use a token from the node &#8211; a node reference field &#8211; as our argument that we pass along to the view.</p>
<div id="attachment_539" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-12-at-12.33.29-PM.png"><img class="size-medium wp-image-539" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-12-at-12.33.29-PM-300x129.png" alt="The view loaded into the content type" width="300" height="129" /></a><p class="wp-caption-text">The view loaded into the content type</p></div>
<p>The views is loaded into the content type which makes it pretty simple to organize.</p>
<p>The final output has our tabled view inserted into our content = yay <img src='http://blog.hsl.virginia.edu/drupalpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div id="attachment_540" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-12-at-12.35.42-PM.png"><img class="size-medium wp-image-540" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/04/Screen-Shot-2012-04-12-at-12.35.42-PM-300x100.png" alt="Attached table view in our content" width="300" height="100" /></a><p class="wp-caption-text">Attached table view in our content</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.hsl.virginia.edu/drupalpress/views-attach-putting-views-into-cck/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Views Or Filters Drupal 6 tutorial</title>
		<link>http://blog.hsl.virginia.edu/drupalpress/views-or-filters-drupal-6-tutorial/</link>
		<comments>http://blog.hsl.virginia.edu/drupalpress/views-or-filters-drupal-6-tutorial/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 15:40:02 +0000</pubDate>
		<dc:creator>alibama</dc:creator>
				<category><![CDATA[Planet_Drupal]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[filters]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[view]]></category>
		<category><![CDATA[views or]]></category>

		<guid isPermaLink="false">http://blog.hsl.virginia.edu/drupalpress/?p=520</guid>
		<description><![CDATA[Views Or allows you to define filter blocks with multiple alternatives in drupal views. for the video inclined here&#8217;s the two minute walk through &#8211; http://www.youtube.com/watch?v=pWE78xQK3Z0 A bit sleepy this morning and forgot coffee.  It shows, I know. Use case: &#8230; <a class="more-link" href="http://blog.hsl.virginia.edu/drupalpress/views-or-filters-drupal-6-tutorial/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://drupal.org/project/views_or">Views Or</a> allows you to define filter blocks with multiple alternatives in drupal views.</p>
<p>for the video inclined here&#8217;s the two minute walk through &#8211; <a href="http://www.youtube.com/watch?v=pWE78xQK3Z0">http://www.youtube.com/watch?v=pWE78xQK3Z0 </a></p>
<p>A bit sleepy this morning and forgot coffee.  It shows, I know.</p>
<p><strong>Use case:</strong> we have some old data &#8211; some of it comes in with the number 0 meaning blank, some of the rows contain the word NULL and some of the rows are empty.  All three variations mean the same thing.  We want to create a single view with all three options open &#8211; if it&#8217;s the number 0 OR the word NULL or simply empty.</p>
<div id="attachment_517" class="wp-caption alignright" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-30-at-1.16.52-PM.png"><img class="size-medium wp-image-517" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-30-at-1.16.52-PM-300x212.png" alt="Views Or adds to your filters options" width="300" height="212" /></a><p class="wp-caption-text">Views Or adds to your filters options</p></div>
<p><strong>Installation and usage:</strong> Install as usual &#8211; obviously you&#8217;ll need views installed&#8230;.  To use you will need to add all three of the new fields into your filters block.  First will be the &#8220;Begin alternatives&#8221; then the &#8220;Next alternative between your filters, (repeated for as many alternatives as you need)  and lastly you&#8217;ll need to &#8220;end alternatives.&#8221;</p>
<div id="attachment_518" class="wp-caption alignright" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-30-at-1.17.14-PM.png"><img class="size-medium wp-image-518" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-30-at-1.17.14-PM-300x136.png" alt="Views or fields in the filters area" width="300" height="136" /></a><p class="wp-caption-text">Views or fields in the filters area</p></div><br />
<div id="attachment_521" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-30-at-1.20.08-PM.png"><img class="size-medium wp-image-521" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-30-at-1.20.08-PM-300x193.png" alt="All the pretty fields need to be reorganized" width="300" height="193" /></a><p class="wp-caption-text">All the pretty fields need to be reorganized</p></div>
<p>As a lazy lad I like to just add them all at once and then move the options around afterwards, do whatever your gods tell you to&#8230;</p>
<div id="attachment_522" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-30-at-1.20.21-PM.png"><img class="size-medium wp-image-522" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-30-at-1.20.21-PM-300x103.png" alt="The final views or arrangement" width="300" height="103" /></a><p class="wp-caption-text">The final views or arrangement</p></div>
<p>
Programmatically what this has achieved is</p>
<blockquote><p>AND ((UPPER(node_data_field_er_acq_uid.field_er_acq_uid_value) = UPPER(&#8216;NULL&#8217;)) OR (node_data_field_er_acq_uid.field_er_acq_uid_value IS NULL))</p></blockquote>
<p>In any case it&#8217;s a pretty simple module &#8211; installs well and saved us from cruddy data.  Merci a bunch to all</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hsl.virginia.edu/drupalpress/views-or-filters-drupal-6-tutorial/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Views Field View &#8211; what works and what irks</title>
		<link>http://blog.hsl.virginia.edu/drupalpress/views-field-view-what-works-and-what-irks/</link>
		<comments>http://blog.hsl.virginia.edu/drupalpress/views-field-view-what-works-and-what-irks/#comments</comments>
		<pubDate>Wed, 28 Mar 2012 18:43:06 +0000</pubDate>
		<dc:creator>alibama</dc:creator>
				<category><![CDATA[Planet_Drupal]]></category>
		<category><![CDATA[arguemtns]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[views]]></category>
		<category><![CDATA[views calc]]></category>
		<category><![CDATA[views field view]]></category>
		<category><![CDATA[views php]]></category>

		<guid isPermaLink="false">http://blog.hsl.virginia.edu/drupalpress/?p=503</guid>
		<description><![CDATA[Views field view allows you to pass an argument to a view and return results. For the video inclined here&#8217;s the 2 minute feed http://www.youtube.com/watch?v=dUoL_ARPLcI Use Case:  we&#8217;ve got a lot of variables being tallied in different views.  Views in &#8230; <a class="more-link" href="http://blog.hsl.virginia.edu/drupalpress/views-field-view-what-works-and-what-irks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://drupal.org/project/views_field_view">Views field view </a>allows you to pass an argument to a view and return results.</p>
<p>For the video inclined here&#8217;s the 2 minute feed <a href="http://www.youtube.com/watch?v=dUoL_ARPLcI">http://www.youtube.com/watch?v=dUoL_ARPLcI</a></p>
<p><strong>Use Case</strong>:  we&#8217;ve got a lot of variables being tallied in different views.  Views in general seems an awkward tool for tabulating values.  Tools like <a href="http://drupal.org/project/views_calc">views calc</a> and <a href="http://drupal.org/project/views_groupby">group by</a> work ok for getting a sum or count here and there, but try mixing several together in one view and the errors start to fly.  May just be I don&#8217;t have my head around them, in any case they are not intuitive.   For a given organic group node I need to know <strong>how many posts there are total</strong> (not a problem, that field comes with organic group views integration), and how many of these posts have been completed in a certain way.</p>
<div id="attachment_501" class="wp-caption alignleft" style="width: 232px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-28-at-2.27.26-PM.png"><img class="size-medium wp-image-501" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-28-at-2.27.26-PM-222x300.png" alt="Views field view added to fields in view" width="222" height="300" /></a><p class="wp-caption-text">Views field view added to fields in view</p></div>
<div id="attachment_502" class="wp-caption alignright" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-28-at-2.27.44-PM.png"><img class="size-medium wp-image-502" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-28-at-2.27.44-PM-300x169.png" alt="Choose a view and add fields from the view as argument tokens" width="300" height="169" /></a><p class="wp-caption-text">Choose a view and add fields from the view as argument tokens</p></div>
<p>Creating this separate view is simple, but now I want to link the main view to the small view tally.  Views Field View let&#8217;s you pick a view and pass it an argument to filter the results per row.  In this case we load a node id into our main view and pass the argument over to the Views Field View &#8211; creating a new field with the correct info on a per row basis = Nice!</p>
<p>The only thing that doesn&#8217;t work is that it does not actually load this view in the order the rows are listed.  Because of this it does not work well with <a href="http://drupal.org/projects/views_php">Views PHP</a>.  Although the rows are listed in this global php field the actual data is not available because for some reason the field is not loaded in the order one might imagine it to be.   It&#8217;d be really handy to be able to use these variables in calculations, however it&#8217;s just not obvious at all how to do that.</p>
<div id="attachment_504" class="wp-caption alignright" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-28-at-2.39.18-PM.png"><img class="size-medium wp-image-504 " src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-28-at-2.39.18-PM-300x230.png" alt="Views PHP and VIews Field View don't work together" width="300" height="230" /></a><p class="wp-caption-text">Views PHP and VIews Field View don&#039;t work together</p></div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hsl.virginia.edu/drupalpress/views-field-view-what-works-and-what-irks/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Views PHP &#8211; a simple way to customize apachesolr views results by content type</title>
		<link>http://blog.hsl.virginia.edu/drupalpress/views-php-a-simple-way-to-customize-apachesolr-views-results-by-content-type/</link>
		<comments>http://blog.hsl.virginia.edu/drupalpress/views-php-a-simple-way-to-customize-apachesolr-views-results-by-content-type/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 14:49:57 +0000</pubDate>
		<dc:creator>alibama</dc:creator>
				<category><![CDATA[Planet_Drupal]]></category>
		<category><![CDATA[apachesolr]]></category>
		<category><![CDATA[apachesolr views]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[drupal 6]]></category>
		<category><![CDATA[views php]]></category>

		<guid isPermaLink="false">http://blog.hsl.virginia.edu/drupalpress/?p=490</guid>
		<description><![CDATA[We&#8217;ve been getting some questions about how we customize our apachesolr results by content type.  The answer:  very simply.  We use views php.  Views php allows us several new field type in views including a place to put custom PHP. &#8230; <a class="more-link" href="http://blog.hsl.virginia.edu/drupalpress/views-php-a-simple-way-to-customize-apachesolr-views-results-by-content-type/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_491" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-23-at-10.36.16-AM.png"><img class="size-medium wp-image-491" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-23-at-10.36.16-AM-300x185.png" alt="Custom apachesolr results " width="300" height="185" /></a><p class="wp-caption-text">Custom apachesolr results </p></div>
<p>We&#8217;ve been getting some questions about how we customize our apachesolr results by content type.  The answer:  very simply.  We use <a href="http://drupal.org/projects/view_php">views php</a>.  Views php allows us several new field type in views including a place to put custom PHP. It also has the advantage of allowing you to pull in variables already loaded into your view.  Thus while it is possible to write queries to the database in the php area, it is not necessary.  Moreover if you have need to tables not typically available in views you may use the<a href="http://drupal.org/project/data"> data module</a> to gain access.</p>
<p>For the video inclined here is a link to our<a href="http://www.youtube.com/watch?v=cAehdUVrVDs"> 2 minutes on views php</a> http://www.youtube.com/watch?v=cAehdUVrVDs</p>
<p>While there are several fields available in the Views PHP field I tend to use the output field area.  To hide the actual complete results</p>
<div id="attachment_492" class="wp-caption alignright" style="width: 296px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-23-at-10.43.32-AM.png"><img class="size-medium wp-image-492" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-23-at-10.43.32-AM-286x300.png" alt="Using available variables in views php" width="286" height="300" /></a><p class="wp-caption-text">Using available variables in views php</p></div>
<p>this makes it so that you can add a few lines of logic and have the results better reflect the information.  For our librarians we output their profile picture linked to their email address, for our web results we provide link descriptions etc.</p>
<div id="attachment_493" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-23-at-10.45.16-AM.png"><img class="size-medium wp-image-493" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-23-at-10.45.16-AM-300x128.png" alt="Excluding results from display allows the results to be available to views php without cluttering the patrons view" width="300" height="128" /></a><p class="wp-caption-text">Excluding results from display allows the results to be available to views php without cluttering the patrons view</p></div>
<p>Just remember to exclude your fields from display so that the user isn&#8217;t presented with  hundreds of fields and you&#8217;re good to go.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hsl.virginia.edu/drupalpress/views-php-a-simple-way-to-customize-apachesolr-views-results-by-content-type/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Importing users into organic groups with feeds part 1</title>
		<link>http://blog.hsl.virginia.edu/drupalpress/importing-users-into-organic-groups-with-feeds-part-1/</link>
		<comments>http://blog.hsl.virginia.edu/drupalpress/importing-users-into-organic-groups-with-feeds-part-1/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 13:23:54 +0000</pubDate>
		<dc:creator>alibama</dc:creator>
				<category><![CDATA[Planet_Drupal]]></category>
		<category><![CDATA[feeds]]></category>
		<category><![CDATA[feeds node reference]]></category>
		<category><![CDATA[feeds organic groups]]></category>
		<category><![CDATA[feeds role id map]]></category>
		<category><![CDATA[feeds tamper]]></category>
		<category><![CDATA[feeds user reference]]></category>
		<category><![CDATA[node access by user reference]]></category>
		<category><![CDATA[og access admins]]></category>
		<category><![CDATA[og hide membership]]></category>
		<category><![CDATA[og subgroups]]></category>
		<category><![CDATA[og user roles]]></category>
		<category><![CDATA[organic groups]]></category>
		<category><![CDATA[user import]]></category>
		<category><![CDATA[user import for organic groups]]></category>

		<guid isPermaLink="false">http://blog.hsl.virginia.edu/drupalpress/?p=430</guid>
		<description><![CDATA[Note to all:  Feeds doesn&#8217;t seem to connect with user profiles http://drupal.org/node/1060230 = stay tuned for the fix in part 2 (hint use user import also) Organic groups is a great way to organize groups and cascade permissions &#8211; in &#8230; <a class="more-link" href="http://blog.hsl.virginia.edu/drupalpress/importing-users-into-organic-groups-with-feeds-part-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Note to all:  Feeds doesn&#8217;t seem to connect with user profiles </strong><a href="http://drupal.org/node/1060230" target="_content">http://drupal.org/node/1060230</a> <strong>= stay tuned for the fix in part 2 (hint use user import also)</strong></p>
<p>Organic groups is a great way to organize groups and cascade permissions &#8211; in this example we tested against 45,000 users in 3 different roles going in to 500 groups.</p>
<p>While the end result is pretty obvious here&#8217;s the 2 minute vid <a href="http://www.youtube.com/watch?v=M0uYvlmIGps">http://www.youtube.com/watch?v=M0uYvlmIGps</a></p>
<p>While Node import did the heavy lifting for the group node creation feeds came ahead for user imports.  Node Import just has a few more settings for group node creation than does feeds.</p>
<p>This project came about as a conversion from an unmaintainable drupal 6 site that we converted into off-the-shelf drupal.<br />
Modules used: <a href="http://drupal.org/project/feeds"></a></p>
<ul>
<li><a href="http://drupal.org/project/feeds">Feeds </a>patched with <a href="http://drupal.org/node/857424#comment-4038128">http://drupal.org/node/857424#comment-4038128</a> for organic groups (originally tested with the node reference patch here <a href="http://drupal.org/node/724536#comment-4347036">http://drupal.org/node/724536#comment-4347036</a> &#8211; i thought that referencing the node was enough to join a member to a group&#8230; wrong)</li>
<li><a href="http://drupal.org/project/feeds_ridmap">Feeds Role ID Map</a> &#8211; added organic group user roles during the import</li>
<li><a href="http://drupal.org/project/feeds_tamper">Feeds Tamper</a> &#8211; required for adding organic groups via the patch (with the &#8220;explode list&#8221; filter) and for use with Feeds Role ID Map</li>
<li><a href="http://drupal.org/project/feeds_user_map">Feeds User Map</a> &#8211; allows you to map the author of the node &#8211; applied to the survey for permissions</li>
<li>Feeds View Parser &#8211; some data was exported and then reingested to correlate the relationships that were present in the original data</li>
<li><a href="http://drupal.org/project/og">Organic Groups</a></li>
<li><a href="http://drupal.org/project/og_hide_membership">OG Hide Membership</a> &#8211; members are not meant to interact with eachother &#8211; we&#8217;re really just using OG for permissions</li>
<li><a href="http://drupal.org/project/og_user_roles">OG User Roles</a> &#8211; needed to clean up permissions</li>
<li><a href="http://drupal.org/project/og_access_admins">Organic Groups Access Admins</a> &#8211; more permissions for the node groups</li>
</ul>
<div class="mceTemp">
<dl>
<dt><a href="../files/2012/03/Screen-Shot-2012-03-17-at-10.22.06-AM.png"><img src="../files/2012/03/Screen-Shot-2012-03-17-at-10.22.06-AM.png" alt="Feeds Tamper to assign multiple groups from a signle field " width="341" height="295" /></a>&nbsp;</p>
<div id="attachment_455" class="wp-caption alignright" style="width: 222px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-17-at-10.18.30-AM.png"><img class="size-full wp-image-455" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-17-at-10.18.30-AM.png" alt="group node id's and role assignments in a spreadsheet" width="212" height="295" /></a><p class="wp-caption-text">group node id&#039;s and role assignments in a spreadsheet</p></div>
</dt>
<dd>Feeds Tamper to assign multiple groups from a signle field </dd>
</dl>
</div>
<p><a href="../files/2012/03/Screen-Shot-2012-03-17-at-10.18.30-AM.png"></a></p>
<div id="attachment_457" class="wp-caption alignright" style="width: 299px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-17-at-10.24.40-AM.png"><img class="size-medium wp-image-457" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-17-at-10.24.40-AM-289x300.png" alt="feeds tamper for role id" width="289" height="300" /></a><p class="wp-caption-text">feeds tamper for role id</p></div>
<p>Something to remember with feeds &#8211; it can get a bit wonky over file line endings and encoding &#8211; more so than node import from what I&#8217;ve seen.  These are the settings that have worked for me coming from mac excel -&gt; open in text wrangler and resave with windows cr/lf and utf-8 encoding</p>
<div id="attachment_459" class="wp-caption alignleft" style="width: 308px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-17-at-10.39.21-AM.png"><img class="size-medium wp-image-459" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-17-at-10.39.21-AM-298x300.png" alt="Feeds Settings" width="298" height="300" /></a><p class="wp-caption-text">Feeds Settings</p></div>
<p>The settings are pretty straightforward.</p>
<p><strong>A few things to remember before you upload:</strong></p>
<ul>
<li>if you plan on making node aliases do that before you upload &#8211; views bulk operations is slower than molasses updating url aliases.  Same goes for auto node titles if you&#8217;re using them.</li>
<li>In general every node reference or user reference you have is going to slow something up</li>
</ul>
<div id="attachment_458" class="wp-caption alignright" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-17-at-10.29.27-AM.png"><img class="size-medium wp-image-458" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-17-at-10.29.27-AM-300x129.png" alt="text wrangler settings for feed import" width="300" height="129" /></a><p class="wp-caption-text">text wrangler settings for feed import</p></div>
<div id="attachment_460" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-17-at-10.46.59-AM.png"><img class="size-medium wp-image-460" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-17-at-10.46.59-AM-300x281.png" alt="Feed mappings" width="300" height="281" /></a><p class="wp-caption-text">Feed mappings - remember to have a unique id in there</p></div>
<ul>
<li><a href="http://drupal.org/project/user_import"> </a>
<div class="mceTemp">
<dl>
<dt><a href="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-18-at-10.03.02-PM.png"><img class="size-medium wp-image-471" src="http://blog.hsl.virginia.edu/drupalpress/files/2012/03/Screen-Shot-2012-03-18-at-10.03.02-PM-254x300.png" alt="organic groups access permissions settings" width="254" height="300" /></a></dt>
<dd>Permissions settings</dd>
</dl>
</div>
</li>
</ul>
<p>&nbsp;</p>
<p>Modules tested: although a  lot of modules were tested not all really   made the cut.  Some because they didn&#8217;t really seem useful in our case.  Others (organic subgroups) because I really couldn&#8217;t get a response on   IRC or the forums about how to ingest them en masse &#8211; if anyone has done   this please feel free to chime in) organic groups access permissions  settings</p>
<ul>
<li><a href="http://drupal.org/projects/user_import">User Import</a> &#8211; it only allows you to map your users to a single group.  Thankfully feeds tamper allowed us to map multiple groups per user and group post</li>
<li><a href="http://drupal.org/project/user_import_og">User Import for Organic Groups</a> &#8211; these two seemed promising, however UI4OG only allows the users to be mapped to one group&#8230; no good for our use case</li>
<li><a href="http://drupal.org/project/og_subgroups">OG Subgroups</a> &#8211; ok &#8211; wanted to see this in action, never really got it working at least not through the import interface- might make a good use case for using the<a href="http://drupal.org/project/migration"> migration modules</a></li>
<li><a href="http://drupal.org/project/nodeaccess_userreference">Node Access by User Reference </a>- I really like a lot of Node one&#8217;s ideas, and Johan Falk in particular comes up with some very clever ways of re-arranging drupal mods &#8211; so I thought I might give <a href="http://dev.nodeone.se/node/457">this intuitive technique a go</a> &#8211; the caveats mentioned in his post indeed became insurmountable &#8211; with the need to have 16 user references in each group post my virtual machine came grinding to a halt.</li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hsl.virginia.edu/drupalpress/importing-users-into-organic-groups-with-feeds-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

