<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Drupal&#8217;s &#8220;Promote to Front Page&#8221; option is a bit borked</title>
	<atom:link href="http://www.darcynorman.net/2006/01/23/drupals-promote-to-front-page-option-is-a-bit-borked/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darcynorman.net/2006/01/23/drupals-promote-to-front-page-option-is-a-bit-borked/</link>
	<description>apparently much happier in person</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:03:04 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jason</title>
		<link>http://www.darcynorman.net/2006/01/23/drupals-promote-to-front-page-option-is-a-bit-borked/#comment-81048</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 31 Dec 1969 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-81048</guid>
		<description>I&#039;m not sure how this is going to come through. If you want to change the node.module the change is below and starts on line #1302. I&#039;m not sure how familar with the code you are.


&lt;code&gt;
 // Add the admin-specific parts.
  if (user_access(&#039;administer nodes&#039;)) {
    $output .= &#039;&lt;div class=&quot;admin&quot;&gt;&#039;;
    $author = form_textfield(t(&#039;Authored by&#039;), &#039;name&#039;, $edit-&gt;name, 20, 60);
    $author .= form_textfield(t(&#039;Authored on&#039;), &#039;date&#039;, $edit-&gt;date, 20, 25, NULL, NULL, TRUE);
    $output .= &#039;&lt;div class=&quot;authored&quot;&gt;&#039;;
    $output .= form_group(t(&#039;Authoring information&#039;), $author);
    $output .= &quot;&lt;/div&gt;\n&quot;;
    $output .= &quot;&lt;/div&gt;\n&quot;;
  }
    $output .= &#039;&lt;div class=&quot;admin&quot;&gt;&#039;;
    $node_options = variable_get(&#039;node_options_&#039;. $edit-&gt;type, array(&#039;status&#039;, &#039;promote&#039;));
    $options .= form_checkbox(t(&#039;Published&#039;), &#039;status&#039;, 1, isset($edit-&gt;status) ? $edit-&gt;status : in_array(&#039;status&#039;, $node_options));
    $options .= form_checkbox(t(&#039;In moderation queue&#039;), &#039;moderate&#039;, 1, isset($edit-&gt;moderate) ? $edit-&gt;moderate : in_array(&#039;moderate&#039;, $node_options));
    $options .= form_checkbox(t(&#039;Promoted to front page&#039;), &#039;promote&#039;, 1, isset($edit-&gt;promote) ? $edit-&gt;promote : in_array(&#039;promote&#039;, $node_options));
    $options .= form_checkbox(t(&#039;Sticky at top of lists&#039;), &#039;sticky&#039;, 1, isset($edit-&gt;sticky) ? $edit-&gt;sticky : in_array(&#039;sticky&#039;, $node_options));
    $options .= form_checkbox(t(&#039;Create new revision&#039;), &#039;revision&#039;, 1, isset($edit-&gt;revision) ? $edit-&gt;revision : in_array(&#039;revision&#039;, $node_options));
    $output .= &#039;&lt;div class=&quot;options&quot;&gt;&#039;;
    $output .= form_group(t(&#039;Options&#039;), $options);
    $output .= &quot;&lt;/div&gt;\n&quot;;
    $extras .= implode(&#039;&lt;/div&gt;&lt;div class=&quot;extra&quot;&gt;&#039;, node_invoke_nodeapi($edit, &#039;form admin&#039;));
    $output .= $extras ? &#039;&lt;div class=&quot;extra&quot;&gt;&#039;. $extras .&#039;&lt;/div&gt;&lt;/div&gt;&#039; : &#039;&lt;/div&gt;&#039;;
  //}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure how this is going to come through. If you want to change the node.module the change is below and starts on line #1302. I&#8217;m not sure how familar with the code you are.</p>
<p><code><br />
 // Add the admin-specific parts.<br />
  if (user_access('administer nodes')) {<br />
    $output .= '&lt;div class="admin"&gt;';<br />
    $author = form_textfield(t('Authored by'), 'name', $edit-&gt;name, 20, 60);<br />
    $author .= form_textfield(t('Authored on'), 'date', $edit-&gt;date, 20, 25, NULL, NULL, TRUE);<br />
    $output .= '&lt;div class="authored"&gt;';<br />
    $output .= form_group(t('Authoring information'), $author);<br />
    $output .= "&lt;/div&gt;\n";<br />
    $output .= "&lt;/div&gt;\n";<br />
  }<br />
    $output .= '&lt;div class="admin"&gt;';<br />
    $node_options = variable_get('node_options_'. $edit-&gt;type, array('status', 'promote'));<br />
    $options .= form_checkbox(t('Published'), 'status', 1, isset($edit-&gt;status) ? $edit-&gt;status : in_array('status', $node_options));<br />
    $options .= form_checkbox(t('In moderation queue'), 'moderate', 1, isset($edit-&gt;moderate) ? $edit-&gt;moderate : in_array('moderate', $node_options));<br />
    $options .= form_checkbox(t('Promoted to front page'), 'promote', 1, isset($edit-&gt;promote) ? $edit-&gt;promote : in_array('promote', $node_options));<br />
    $options .= form_checkbox(t('Sticky at top of lists'), 'sticky', 1, isset($edit-&gt;sticky) ? $edit-&gt;sticky : in_array('sticky', $node_options));<br />
    $options .= form_checkbox(t('Create new revision'), 'revision', 1, isset($edit-&gt;revision) ? $edit-&gt;revision : in_array('revision', $node_options));<br />
    $output .= '&lt;div class="options"&gt;';<br />
    $output .= form_group(t('Options'), $options);<br />
    $output .= "&lt;/div&gt;\n";<br />
    $extras .= implode('&lt;/div&gt;&lt;div class="extra"&gt;', node_invoke_nodeapi($edit, 'form admin'));<br />
    $output .= $extras ? '&lt;div class="extra"&gt;'. $extras .'&lt;/div&gt;&lt;/div&gt;' : '&lt;/div&gt;';<br />
  //}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D'Arcy</title>
		<link>http://www.darcynorman.net/2006/01/23/drupals-promote-to-front-page-option-is-a-bit-borked/#comment-81049</link>
		<dc:creator>D'Arcy</dc:creator>
		<pubDate>Wed, 31 Dec 1969 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-81049</guid>
		<description>Jason, thanks for the ideas! I&#039;ll give it a shot first thing in the AM. Both of the sites that need this are still running 4.6.5 - I didn&#039;t want to push 4.7b3 into full production yet (although I did sneak it into a project, so I guess I will have a 4.7-series site in production - but that one doesn&#039;t require this granularity).

Thanks again! Much appreciated!

- D&#039;Arcy</description>
		<content:encoded><![CDATA[<p>Jason, thanks for the ideas! I&#8217;ll give it a shot first thing in the AM. Both of the sites that need this are still running 4.6.5 &#8211; I didn&#8217;t want to push 4.7b3 into full production yet (although I did sneak it into a project, so I guess I will have a 4.7-series site in production &#8211; but that one doesn&#8217;t require this granularity).</p>
<p>Thanks again! Much appreciated!</p>
<p>- D&#8217;Arcy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.darcynorman.net/2006/01/23/drupals-promote-to-front-page-option-is-a-bit-borked/#comment-81050</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 31 Dec 1969 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-81050</guid>
		<description>Actually better yet, remove line #1672, #1686-#1694 removing the if statement completely. If you are working with something other than beta 3 let me know and I can forward the change.</description>
		<content:encoded><![CDATA[<p>Actually better yet, remove line #1672, #1686-#1694 removing the if statement completely. If you are working with something other than beta 3 let me know and I can forward the change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.darcynorman.net/2006/01/23/drupals-promote-to-front-page-option-is-a-bit-borked/#comment-81051</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 31 Dec 1969 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-81051</guid>
		<description>I thought of two possible options since Drupal core does not afford you that granular of permissions.

The first is to create a taxonomy called &quot;Promote to Front Page&quot; and require it on new content with &quot;unpublished&quot; set as the default. Then you can change your front page in your config to a custom node.

The second requires you to edit the core node.module line #1683 in Drupal 4.7 beta 3. Just copy that line down somewhere between line #1688-1693 where the user section is defined. This does require you to maintain a fork though.

Maybe there are some other ways, but I couldn&#039;t think of any off the top of my head.</description>
		<content:encoded><![CDATA[<p>I thought of two possible options since Drupal core does not afford you that granular of permissions.</p>
<p>The first is to create a taxonomy called &#8220;Promote to Front Page&#8221; and require it on new content with &#8220;unpublished&#8221; set as the default. Then you can change your front page in your config to a custom node.</p>
<p>The second requires you to edit the core node.module line #1683 in Drupal 4.7 beta 3. Just copy that line down somewhere between line #1688-1693 where the user section is defined. This does require you to maintain a fork though.</p>
<p>Maybe there are some other ways, but I couldn&#8217;t think of any off the top of my head.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ignas</title>
		<link>http://www.darcynorman.net/2006/01/23/drupals-promote-to-front-page-option-is-a-bit-borked/#comment-81935</link>
		<dc:creator>Ignas</dc:creator>
		<pubDate>Wed, 31 Dec 1969 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-81935</guid>
		<description>OT: This page looks bad on Firefox browser.  Some other pages looks ok, some not. </description>
		<content:encoded><![CDATA[<p>OT: This page looks bad on Firefox browser.  Some other pages looks ok, some not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dnorman</title>
		<link>http://www.darcynorman.net/2006/01/23/drupals-promote-to-front-page-option-is-a-bit-borked/#comment-81936</link>
		<dc:creator>dnorman</dc:creator>
		<pubDate>Wed, 31 Dec 1969 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-81936</guid>
		<description>Ignas - yeah this page looks borked. Likely something in the first comment blew out the structure of the page. The comment is useful, though, so I&#039;d rather live with a bit of noise for now. I&#039;ll see if I can clean it up, but I think this is the only page affected, so it&#039;s not a site-wide thing.</description>
		<content:encoded><![CDATA[<p>Ignas &#8211; yeah this page looks borked. Likely something in the first comment blew out the structure of the page. The comment is useful, though, so I&#8217;d rather live with a bit of noise for now. I&#8217;ll see if I can clean it up, but I think this is the only page affected, so it&#8217;s not a site-wide thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dnorman</title>
		<link>http://www.darcynorman.net/2006/01/23/drupals-promote-to-front-page-option-is-a-bit-borked/#comment-81937</link>
		<dc:creator>dnorman</dc:creator>
		<pubDate>Wed, 31 Dec 1969 17:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-81937</guid>
		<description>ah. easy fix. just encoded the brackets in the code in the first comment. better... Thanks for the heads-up!</description>
		<content:encoded><![CDATA[<p>ah. easy fix. just encoded the brackets in the code in the first comment. better&#8230; Thanks for the heads-up!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
