<?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"
	>
<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>ce n'est pas la connaissance.</description>
	<pubDate>Thu, 04 Dec 2008 04:34:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<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>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-81048</guid>
		<description>I'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'm not sure how familar with the code you are.


&lt;code&gt;
 // Add the admin-specific parts.
  if (user_access('administer nodes')) {
    $output .= '&#60;div class="admin"&#62;';
    $author = form_textfield(t('Authored by'), 'name', $edit-&#62;name, 20, 60);
    $author .= form_textfield(t('Authored on'), 'date', $edit-&#62;date, 20, 25, NULL, NULL, TRUE);
    $output .= '&#60;div class="authored"&#62;';
    $output .= form_group(t('Authoring information'), $author);
    $output .= "&#60;/div&#62;\n";
    $output .= "&#60;/div&#62;\n";
  }
    $output .= '&#60;div class="admin"&#62;';
    $node_options = variable_get('node_options_'. $edit-&#62;type, array('status', 'promote'));
    $options .= form_checkbox(t('Published'), 'status', 1, isset($edit-&#62;status) ? $edit-&#62;status : in_array('status', $node_options));
    $options .= form_checkbox(t('In moderation queue'), 'moderate', 1, isset($edit-&#62;moderate) ? $edit-&#62;moderate : in_array('moderate', $node_options));
    $options .= form_checkbox(t('Promoted to front page'), 'promote', 1, isset($edit-&#62;promote) ? $edit-&#62;promote : in_array('promote', $node_options));
    $options .= form_checkbox(t('Sticky at top of lists'), 'sticky', 1, isset($edit-&#62;sticky) ? $edit-&#62;sticky : in_array('sticky', $node_options));
    $options .= form_checkbox(t('Create new revision'), 'revision', 1, isset($edit-&#62;revision) ? $edit-&#62;revision : in_array('revision', $node_options));
    $output .= '&#60;div class="options"&#62;';
    $output .= form_group(t('Options'), $options);
    $output .= "&#60;/div&#62;\n";
    $extras .= implode('&#60;/div&#62;&#60;div class="extra"&#62;', node_invoke_nodeapi($edit, 'form admin'));
    $output .= $extras ? '&#60;div class="extra"&#62;'. $extras .'&#60;/div&#62;&#60;/div&#62;' : '&#60;/div&#62;';
  //}&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>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-81049</guid>
		<description>Jason, thanks for the ideas! I'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'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't require this granularity).

Thanks again! Much appreciated!

- D'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 - 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 - 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>Tue, 30 Nov 1999 00: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>Tue, 30 Nov 1999 00: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 "Promote to Front Page" and require it on new content with "unpublished" 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'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>Tue, 30 Nov 1999 00: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>Tue, 30 Nov 1999 00: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'd rather live with a bit of noise for now. I'll see if I can clean it up, but I think this is the only page affected, so it's not a site-wide thing.</description>
		<content:encoded><![CDATA[<p>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&#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>Tue, 30 Nov 1999 00: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>
