Re: Auto Compete for Schema xml
Simon Richardson <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <[email protected]> |
Espen
Your response put me in the right direction. I implemented this which
does what I wanted:
<field name="squad" type="plone.app.relationfield.RelationList">
<title>Squad</title>
<value_type type="plone.app.relationfield.Relation"
form:widget="plone.formwidget.autocomplete.AutocompleteMultiFieldWidget">
<title>Related</title>
<source>myswimmingclub.content.squad_path_src_binder</source>
</value_type>
<required>False</required>
</field>
Thanks for your help
Simon
On 18/02/2015 22:35, espen wrote:
>
> 18. feb. 2015 kl. 08:37 skrev Simon Richardson-2 [via Plone] <[hidden
> email] </user/SendEmail.jtp?type=node&node=7573277&i=0>>:
>
>> I have a dexterity type where the fields are defined in a model xml
>> file. I've created a reference and restricted this to certain type
>> using object_provides.
>>
>> I now want to enable the AutocompleteFieldWidget on my referenced
>> field but don't know how to do this and also have the fields defined
>> in the model xml file.
>>
>> The dexterity developer manual seams to suggest using
>> directives.widget in the interface but I just can't get this to
>> work. Has anyone managed to do this without reverting to defining
>> the schema model entirely in code?
>
> not sure about this, but could it be possible to do just:
>
> <field name=«some.thing»>
> <form:widget type="z3c.form.browser.some.Widget">
> <klass>asomething</klass>
> </form:widget>
> </field>
>
>>
>> Simon
>>
>> ------------------------------------------------------------------------------
>>
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration &
>> more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Plone-Users mailing list
>> <a
>> href="x-msg://4/user/SendEmail.jtp?type=node&node=7573272&i=0" target="_top"
>> rel="nofollow" link="external">[hidden email]
>> https://lists.sourceforge.net/lists/listinfo/plone-users
>>
>>
>> ------------------------------------------------------------------------
>> If you reply to this email, your message will be added to the
>> discussion below:
>> http://plone.293351.n2.nabble.com/Auto-Compete-for-Schema-xml-tp7573272.html
>>
>> To start a new topic under General Questions, email [hidden email]
>> </user/SendEmail.jtp?type=node&node=7573277&i=1>
>> To unsubscribe from Plone, click here.
>> NAML
>> <http://plone.293351.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
> ------------------------------------------------------------------------
> View this message in context: Re: Auto Compete for Schema xml
> <http://plone.293351.n2.nabble.com/Auto-Compete-for-Schema-xml-tp7573272p7573277.html>
> Sent from the General Questions mailing list archive
> <http://plone.293351.n2.nabble.com/General-Questions-f293352.html> at
> Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> Plone-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plone-users
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users