Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>OK, I have done It. At least on Plone 4.3</p> <p>The first part was, to fully enable the jQuery ui effects in the package. There is a namespace problem and a missing file, that results in <code>.effects() is not a function</code>.</p> <p>First, download the correct jQueryUI version cd into it and </p> <pre><code>jquery=/buildout_dir/parts/omelette/collective/js/jqueryui cp jquery.ui.effect.min.js $jquery/js/jquery.ui.effect.core.min.js </code></pre> <p>then cd into the <code>$jquery</code> directory and convert all effect packages to correct namespace. Eg:</p> <pre><code>mv js/jquery.ui.effect-highlight.min.js js/jquery.ui.effect.highlight.min.js </code></pre> <p>Then replace all occurrences of <code>effects</code> with <code>effect</code> <code>$jquery/config.py</code>. In vim use</p> <pre><code>:1,$s/effects/effect/g </code></pre> <p>Secondly, to enable the jQuery based autocomplete widget, cd into the src directory of your buildout and </p> <pre><code> git clone https://github.com/plone/plone.formwidget.autocomplete.git plone.formwidget.autocomplete git checkout jqueryui-autocomplete </code></pre> <p>then edit your <code>versions.cfg</code>. For me </p> <pre><code>plone.formwidget.autocomplete &gt;= 2.0 </code></pre> <p>works. Then edit your <code>buildout.cfg</code> and add the package under <code>zcml</code> and <code>develop</code>. I did a buildout, but it may be enough to restart Zope. The last step is obviously, to visit the portal installer and reinstall the product.</p> <p><strong>Update</strong></p> <p>As described in the comments, it was not fully functional. I further had to modify one .js file, namely <code>autocomplete.js</code> from the <code>plone.formwidget.autocomplete</code> package. Here is the result</p> <p><a href="http://pastebin.com/RPaLk80H" rel="nofollow">http://pastebin.com/RPaLk80H</a></p> <p>This all together makes the RelationChoiceWidget and the AutocompleteWidget work <strong>together</strong> in one form. I like it. </p> <p>I also filed a bug report on github for the jQueryUI package.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload