<?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 - ctools</title>
 <link>https://build2be.com/category/ctools</link>
 <description></description>
 <language>en</language>
<item>
 <title>Using ctools modal forms for node edit</title>
 <link>https://build2be.com/content/using-ctools-modal-forms-node-edit</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;For a drupal 6 site I needed a node edit overlay. This is what I did.&lt;/p&gt;
&lt;p&gt;Define the urls  &lt;strong&gt;ajax/node/%node/edit&lt;/strong&gt; and &lt;strong&gt;nojs/node/%node/edit&lt;/strong&gt;. The idea is to use path similar to the normal drupal paths just prepended with what ctools modal needs. It needs are minor in that the url path must contain a string &lt;em&gt;nojs&lt;/em&gt; and in this case a class attribute &lt;em&gt;ctools-use-modal&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&amp;lt;?php&lt;br /&gt;
function annotate_ym_menu() {&lt;br /&gt;
  $items[&#039;nojs/node/%node/%&#039;] = array(&lt;br /&gt;
    &#039;page callback&#039; =&amp;gt; &#039;annotate_ym_ajax_node&#039;,&lt;br /&gt;
    &#039;page arguments&#039; =&amp;gt; array(0, 2, 3),&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Sat, 12 Mar 2011 13:56:50 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">112 at https://build2be.com</guid>
 <comments>https://build2be.com/content/using-ctools-modal-forms-node-edit#comments</comments>
</item>
</channel>
</rss>
