<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://build2be.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>build2be/com/e - nodeasblock</title>
 <link>https://build2be.com/category/nodeasblock</link>
 <description></description>
 <language>en</language>
<item>
 <title>A node as an editable block</title>
 <link>https://build2be.com/content/node-editable-block</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;I want to create a edit node into a block with ajax submit.&lt;/p&gt;
&lt;p&gt;I wanted to try panels 2 minipanel with a node%/edit override together. But some hour later ... nothing found yet.&lt;/p&gt;
&lt;p&gt;This raw view may be handy: &lt;a href=&quot;http://drupal.org/node/48816&quot;&gt;http://drupal.org/node/48816&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But why not using some php? Below is a raw version&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
global $user;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;$sql = &quot;select nid from {node} where uid == %d&quot;;&lt;br /&gt;
$result = db_query( db_rewrite_sql( $sql), $user-&amp;gt;uid);&lt;br /&gt;
$row = db_fetch_array( $result);&lt;/p&gt;
&lt;p&gt;if( isset( $row) &amp;amp;&amp;amp; isset( $row[&#039;nid&#039;]){&lt;br /&gt;
$node = node_load( 30);&lt;br /&gt;
print drupal_get_form($node-&amp;gt;type .&#039;_node_form&#039;, $node);&lt;br /&gt;
}&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 25 Feb 2008 15:57:08 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">13 at https://build2be.com</guid>
 <comments>https://build2be.com/content/node-editable-block#comments</comments>
</item>
</channel>
</rss>
