<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>JenLampton on Drupal</title>
	<atom:link href="http://jenlampton.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jenlampton.wordpress.com</link>
	<description>Questions &#38; Answers made better - by being made public.</description>
	<lastBuildDate>Mon, 27 Sep 2010 21:51:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jenlampton.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>JenLampton on Drupal</title>
		<link>http://jenlampton.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jenlampton.wordpress.com/osd.xml" title="JenLampton on Drupal" />
	<atom:link rel='hub' href='http://jenlampton.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Mobile versions of CCK images (via Imagecache)</title>
		<link>http://jenlampton.wordpress.com/2010/09/27/mobile-versions-of-cck-images-via-imagecache/</link>
		<comments>http://jenlampton.wordpress.com/2010/09/27/mobile-versions-of-cck-images-via-imagecache/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 21:46:11 +0000</pubDate>
		<dc:creator>jenlampton</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[themimg]]></category>

		<guid isPermaLink="false">http://jenlampton.wordpress.com/?p=49</guid>
		<description><![CDATA[I have a new site that I  expect to be regularly accessed from mobile devices. Using Mobile Tools, I&#8217;m able to switch themes when a mobile device is detected, which works great.  But this site is heavy with images, attached to nodes via CCK imagefield and sized with Imagecache.  Ideally, on node view, I would [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jenlampton.wordpress.com&amp;blog=11948877&amp;post=49&amp;subd=jenlampton&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have a new site that I  expect to be regularly accessed from mobile devices. Using Mobile Tools, I&#8217;m able to switch themes when a mobile device is detected, which works great.  But this site is heavy with images, attached to nodes via CCK imagefield and sized with Imagecache.  Ideally, on node view, I would be able to select different Imagecache profiles for my mobile vs desktop theme, but I just can&#8217;t figure out how to do that.</p>
<p>Here are the two basic strategies I thought of, but got nowhere with:</p>
<p>- In CCK Display settings for the node, if only there were a &#8220;Mobile&#8221; option along with &#8220;Basic&#8221;, &#8220;RSS&#8221;, &#8220;Search&#8221; and &#8220;Token&#8221;&#8230; Or can I use Token somehow? I don&#8217;t know how to make use of this option<br />
- In Panels, I could create different variants of the node view for mobile vs primary theme, but how do I set &#8220;current theme&#8221; as the context (or otherwise know that the page is being viewed on a mobile device)?</p>
<p>I&#8217;d appreciate any thoughts on how I could accomplish this!</p>
<p><span id="more-49"></span>Because all your output is eventually controlled by your theme, you<br />
could handle this with an override of theme_imagecache() in your<br />
mobile theme.  Here&#8217;s how I&#8217;d do it:</p>
<p>1) create mobile versions of each imagecache preset you&#8217;d like<br />
replaced (example: thumb and mobile_thumb, full and mobile_full)<br />
2) create a mobiletheme_imacecache function, which works exactly the<br />
same as theme_imagecache, but before just using the preset specified,<br />
it first checks to see if there is a preset with the prefix &#8220;mobile_&#8221;<br />
and if there is, it uses that instead.</p>
<p>There may be a more elegant solution, but I think this will do the<br />
trick for you.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jenlampton.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jenlampton.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jenlampton.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jenlampton.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jenlampton.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jenlampton.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jenlampton.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jenlampton.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jenlampton.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jenlampton.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jenlampton.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jenlampton.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jenlampton.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jenlampton.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jenlampton.wordpress.com&amp;blog=11948877&amp;post=49&amp;subd=jenlampton&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jenlampton.wordpress.com/2010/09/27/mobile-versions-of-cck-images-via-imagecache/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b3ef5635a7ccca8f7e585572130017b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jenlampton</media:title>
		</media:content>
	</item>
		<item>
		<title>Drupal 5 to Drupal 6 Upgrade procedure</title>
		<link>http://jenlampton.wordpress.com/2010/06/19/drupal-5-drupal-6-upgrade-procedure/</link>
		<comments>http://jenlampton.wordpress.com/2010/06/19/drupal-5-drupal-6-upgrade-procedure/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 00:14:23 +0000</pubDate>
		<dc:creator>jenlampton</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Upgrade]]></category>

		<guid isPermaLink="false">http://jenlampton.wordpress.com/?p=41</guid>
		<description><![CDATA[Take a snapshot of the live database today, and start your upgrade. Upgrade all the code, rewrite custom modules, rebuild all your views and panels, then export them to code too. Then when you think you are ready, take another dump from your live site, drop your upgraded database (keep a backup) and import the D5 database [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jenlampton.wordpress.com&amp;blog=11948877&amp;post=41&amp;subd=jenlampton&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Take a snapshot of the live database today, and start your upgrade.<br />
Upgrade all the code, rewrite custom modules, rebuild all your views<br />
and panels, then export them to code too.</p>
<p>Then when you think you are ready, take another dump from your live<br />
site, drop your upgraded database (keep a backup) and import the D5<br />
database again and visit update.php to bring the database up to date<br />
again.</p>
<p>The only place you will lose any data is with settings and module<br />
configurations, and those you should document so you can revisit each<br />
settings page quickly after the next database upgrade.</p>
<p>I just went through this exact process for a site with 80 contrib<br />
modules and it worked great.  I only upgraded my db three times. Once when I started, once to test the real thing and to make sure I had all the necessary<br />
documentation, and once when I did the real upgrade.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jenlampton.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jenlampton.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jenlampton.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jenlampton.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jenlampton.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jenlampton.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jenlampton.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jenlampton.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jenlampton.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jenlampton.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jenlampton.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jenlampton.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jenlampton.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jenlampton.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jenlampton.wordpress.com&amp;blog=11948877&amp;post=41&amp;subd=jenlampton&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jenlampton.wordpress.com/2010/06/19/drupal-5-drupal-6-upgrade-procedure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b3ef5635a7ccca8f7e585572130017b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jenlampton</media:title>
		</media:content>
	</item>
		<item>
		<title>Panel Pane visibility on cck field value</title>
		<link>http://jenlampton.wordpress.com/2010/06/12/panel-pane-visibility-on-cck-field-value/</link>
		<comments>http://jenlampton.wordpress.com/2010/06/12/panel-pane-visibility-on-cck-field-value/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 21:35:07 +0000</pubDate>
		<dc:creator>jenlampton</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Panels]]></category>

		<guid isPermaLink="false">http://jenlampton.wordpress.com/?p=34</guid>
		<description><![CDATA[I&#8217;m working in panels and have a node template.  I want to add a visibility rule for a pane so that it is only visible when a CCK field is a particular value.  The field is a single on/off checkbox, with key values &#8220;Yes&#8221; and &#8220;No&#8221;.  I&#8217;m using PHP for the visibility rule, and tried [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jenlampton.wordpress.com&amp;blog=11948877&amp;post=34&amp;subd=jenlampton&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>I&#8217;m working in panels and have a node template.  I want to add a visibility rule for a pane so that it is only visible when a CCK field is a particular value.  The field is a single on/off checkbox, with key values &#8220;Yes&#8221; and &#8220;No&#8221;.  I&#8217;m using PHP for the visibility rule, and tried this:<br />
return ($node-&gt;field_listing_green[0]['value'] == &#8216;yes&#8217;);</p>
<p>It produces an error on the page:<br />
&#8220;Parse error: syntax error, unexpected &#8216;[' in .../ctools/plugins/access/php.inc(55) : eval()'d<br />
code on line 1"</p></blockquote>
<p><span id="more-34"></span>For starters the $node you are using in your visibility code doesn't<br />
exist here, so if you want to run a test on part of it, you need to<br />
load the node frist.  (The node is already cached on this page so it's<br />
not a big dea to call node_load() again).  Do something like...</p>
<p>if (arg(0) == 'node' &amp;&amp; is_numeric(arg(1)) &amp;&amp; !arg(2)){<br />
$node = node_load(arg(1));<br />
return ($node-&gt;field_listing_green[0]['value'] == &#8216;yes&#8217;);<br />
}</p>
<p>I&#8217;m not sure why you got the PHP error, but what you are trying to do<br />
is dependent on how you set up the cck field.  I tried to guess how<br />
yours was set up from your email, and added one to one of my content<br />
types.  I chose a &#8220;single on/off checkbox&#8221; where the &#8220;allowed values&#8221;<br />
were defined as follows:<br />
no|<br />
yes|Yes</p>
<p>Then I created a node-view panel layout for this content type, and<br />
added a pane with visibility settings as above, and it worked as<br />
expected.  I&#8217;m not sure what you were doing wrong, but perhaps this<br />
recipe will help you?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jenlampton.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jenlampton.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jenlampton.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jenlampton.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jenlampton.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jenlampton.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jenlampton.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jenlampton.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jenlampton.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jenlampton.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jenlampton.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jenlampton.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jenlampton.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jenlampton.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jenlampton.wordpress.com&amp;blog=11948877&amp;post=34&amp;subd=jenlampton&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jenlampton.wordpress.com/2010/06/12/panel-pane-visibility-on-cck-field-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b3ef5635a7ccca8f7e585572130017b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jenlampton</media:title>
		</media:content>
	</item>
		<item>
		<title>Notifications on User Signup</title>
		<link>http://jenlampton.wordpress.com/2010/06/11/notifications-on-user-signup/</link>
		<comments>http://jenlampton.wordpress.com/2010/06/11/notifications-on-user-signup/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 03:50:50 +0000</pubDate>
		<dc:creator>jenlampton</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[notifications]]></category>

		<guid isPermaLink="false">http://jenlampton.wordpress.com/?p=31</guid>
		<description><![CDATA[I've set up a Drupal site for someone else. I gave him 'sub' admin privileges, so he can log in and approve user account requests. But it is I who am flooded with the emails. I tested this out - on a separate site, I created two admins - me and my evil twin. I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jenlampton.wordpress.com&amp;blog=11948877&amp;post=31&amp;subd=jenlampton&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote>
<pre>I've set up a Drupal site for someone else.  I gave him 'sub' admin
privileges, so he can log in and approve user account requests.  But
it is I who am flooded with the emails.

I tested this out - on a separate site, I created two admins - me and
my evil twin.  I get the user account requests by mail (the standard
"someone has applied for an account" mail) -- my evil twin does not.

It's not clear to me where function_user_mail pulls the value of the
recipient from.
</pre>
</blockquote>
<p><span id="more-31"></span></p>
<p>The email address Drupal is sending the emails to is the one defined on the settings page page at Admin &gt; Site configuration &gt; Site information.  If you are willing to hand of this power to your friend on his site, he will get the user account emails.  If not, please try Chris Bryant&#8217;s solution:</p>
<p><span style="font-family:Verdana;">The Actions and Triggers systems of Drupal core should be able to handle this for you. It&#8217;s not immediately obvious what can be done by combining those two modules, but they are quite powerful and you can do amazing things. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </span></p>
<p>This should get you going&#8230;.</p>
<p>1. Enable the Triggers module</p>
<p>2. Go to Admin &#8211;&gt; Site Configuration &#8211;&gt; Actions (<span style="font-family:Verdana;"><a href="http://example.com/admin/settings/actions" target="_blank">http://example.com/admin/settings/actions</a></span>) and scroll to the bottom to &#8220;Make a new advanced action available&#8221; and select &#8220;Send email&#8230;&#8221; from the drop down.</p>
<p>3. Fill out the appropriate fields for Description, Recipient, Subject and Message. For &#8220;Message&#8221; I would suggest going to Admin &#8211;&gt; User Management &#8211;&gt; User settings (<a href="http://example.com/admin/user/settings" target="_blank">http://example.com/admin/user/settings</a>) and just copy and pasting one of the appropriate emails (since it will have all the Tokens that put in the site name and username, etc. in it.) The &#8220;Welcome, awaiting administrator approval&#8221; email is probably a good base to start with and you can modify it as needed. Then click &#8220;Save.&#8221;</p>
<p>4. Now you just need to create the Trigger to tie the Send Email action to fire when a user is created. Go to Admin &#8211;&gt; Site Building &#8211;&gt; Triggers &#8211;&gt; Users and chose the action you created from the dropdown next to &#8220;Trigger: After a user account has been created&#8221; and click &#8220;Assign.&#8221;</p>
<p>5. You&#8217;re done. Enjoy the the evil you have now done to your evil twin. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>As a bonus there is also a &#8220;Token Actions&#8221; sub-module as part of the Token project which will let you use more Tokens in your Actions.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jenlampton.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jenlampton.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jenlampton.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jenlampton.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jenlampton.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jenlampton.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jenlampton.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jenlampton.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jenlampton.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jenlampton.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jenlampton.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jenlampton.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jenlampton.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jenlampton.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jenlampton.wordpress.com&amp;blog=11948877&amp;post=31&amp;subd=jenlampton&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jenlampton.wordpress.com/2010/06/11/notifications-on-user-signup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b3ef5635a7ccca8f7e585572130017b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jenlampton</media:title>
		</media:content>
	</item>
		<item>
		<title>Specify a page template for the search form.</title>
		<link>http://jenlampton.wordpress.com/2010/02/10/specify-page-template-search-form/</link>
		<comments>http://jenlampton.wordpress.com/2010/02/10/specify-page-template-search-form/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 01:03:34 +0000</pubDate>
		<dc:creator>jenlampton</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[template files]]></category>
		<category><![CDATA[themimg]]></category>

		<guid isPermaLink="false">http://jenlampton.wordpress.com/?p=8</guid>
		<description><![CDATA[I&#8217;m working on a large site that has two different visual styles. Pages from each style can submit to the search function. Depending on which &#8220;side&#8221; of the site users come from, I&#8217;d like to specify the page template to use for displaying the results. I was thinking of passing a value from a hidden [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jenlampton.wordpress.com&amp;blog=11948877&amp;post=8&amp;subd=jenlampton&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>I&#8217;m working on a large site that has two different visual styles. Pages from each style can submit to the search function. Depending on which &#8220;side&#8221; of the site users come from, I&#8217;d like to specify the page template to use for displaying the results. I was thinking of passing a value from a hidden field in the search submit form, but I&#8217;ve poked around and don&#8217;t readily see any way to pass that value on to the results.  Does anyone have any ideas?</p></blockquote>
<p><span id="more-8"></span></p>
<p>A few ideas come to mind.</p>
<p>You could change the action of the search form to include a $_GET<br />
variable&#8230;  something like  search?site=first or search?site=second.<br />
Then in your theme&#8217;s preprocess_page function you can sniff out the<br />
$_GET and alter the template file accordingly.</p>
<p>You could also add a hidden element to the search form itself. This<br />
seems harder because I&#8217;m not sure which of those values survive the<br />
form processing and get passed on to the results page. You could dig<br />
around and see if you could find it, but it will probably require a<br />
form_alter to get the value in there, then a form_submit to save it<br />
someplace useful in addition to the preprocess_page to get it out<br />
again.</p>
<p>Another option would be to save the version of the site in the<br />
session.  This might be useful incase you ended up with more than one<br />
place you needed to use this functionality.  You wouldn&#8217;t need to<br />
tackle each problem individually, you could solve this once and re-use this value other places as needs arise.</p>
<p>I hope one of those solutions works for you <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><em>Answer given to Berkeley Drupal Users Group, 6/7/2010</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jenlampton.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jenlampton.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jenlampton.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jenlampton.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jenlampton.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jenlampton.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jenlampton.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jenlampton.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jenlampton.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jenlampton.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jenlampton.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jenlampton.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jenlampton.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jenlampton.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jenlampton.wordpress.com&amp;blog=11948877&amp;post=8&amp;subd=jenlampton&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jenlampton.wordpress.com/2010/02/10/specify-page-template-search-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b3ef5635a7ccca8f7e585572130017b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jenlampton</media:title>
		</media:content>
	</item>
		<item>
		<title>Editing Panels Pages Content Menus</title>
		<link>http://jenlampton.wordpress.com/2010/02/09/editing-panels-pages-content-menus/</link>
		<comments>http://jenlampton.wordpress.com/2010/02/09/editing-panels-pages-content-menus/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 23:55:46 +0000</pubDate>
		<dc:creator>jenlampton</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Panels]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I&#8217;m interested in making some edits to Panel&#8217;s Page Content menus, and my investigations so far haven&#8217;t provided a suitable solution for doing this.  The menus are provided by CTools and allows users to modify the content and behaviors of panels pages &#8211; things like Region: Style, Add content, etc. You can add something to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jenlampton.wordpress.com&amp;blog=11948877&amp;post=1&amp;subd=jenlampton&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>I&#8217;m interested in making some edits to Panel&#8217;s Page Content menus, and my investigations so far haven&#8217;t provided a suitable solution for doing this.  The menus are provided by CTools and allows users to modify the content and behaviors of panels pages &#8211; things like Region: Style, Add content, etc.</p>
<p><span id="more-1"></span></p></blockquote>
<p>You can add something to those menus in panels by designing and<br />
building the thing you&#8217;d like to see there, and once your thing is in<br />
the right format and hooked into panels correctly, it will just show<br />
up!  But the existing panel&#8217;s menus aren&#8217;t really designed to be<br />
altered.</p>
<p>Panels &#8211; like views &#8211; is a developer tool, and not intended to be<br />
turned over to end users. In that respect, there&#8217;s no need to change<br />
any of the language on any of the menus (ha ha!).  That said, panels<br />
was designed to have a plugable UI.  So, if you don&#8217;t like the<br />
developer UI, you can write your own client-facing UI.</p>
<p>Fortunately, someone&#8217;s already beaten you to it.  Check out this<br />
patch:  <a href="http://drupal.org/node/785576" target="_blank">http://drupal.org/node/785576</a></p>
<p>I know, that doesn&#8217;t really answer your question.</p>
<p><em>Answer given to Berkeley Drupal Users Group, 5/13/2010</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jenlampton.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jenlampton.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jenlampton.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jenlampton.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jenlampton.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jenlampton.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jenlampton.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jenlampton.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jenlampton.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jenlampton.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jenlampton.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jenlampton.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jenlampton.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jenlampton.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jenlampton.wordpress.com&amp;blog=11948877&amp;post=1&amp;subd=jenlampton&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jenlampton.wordpress.com/2010/02/09/editing-panels-pages-content-menus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b3ef5635a7ccca8f7e585572130017b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jenlampton</media:title>
		</media:content>
	</item>
	</channel>
</rss>
