Ticket #679 (new New Feature)

Opened 3 years ago

Last modified 2 months ago

custom field editors: custom field styling should not require one to write java code.

Reported by: karel@… Owned by: somebody
Priority: Minor Milestone:
Component: Frontend - doc editing - fields Version: 2.2
Keywords: Cc:

Description

[jira2trac import : issue created on November 14, 2008 8:48:44 AM CET http://issues.cocoondev.org/browse/DSY-679 ]

For a refresher on field editors, go here first: http://cocoondev.org/daisydocs-2_2/374-cd/563-cd.html

When want to give a field editor a custom styling (i.e. a custom cforms template), you need to write a custom field editor class that calls your own template.xml.

To avoid the need to implement a FieldEditor?, it would be nice if the DefaultFieldEditor? checked for the presence of properties. e.g. a single-valued field called 'Person' could be styled using only this:

--Person.xml--
<fieldEditor xmlns="http://outerx.org/daisy/1.0#fieldeditor"
class="org.outerj.daisy.frontend.editor.DefaultFieldEditor?$Factory">
  <properties>
    <entry key="definition">wikidata:resources/person_definition.xml</entry>
    <entry key="template">wikidata:resources/person_template.xml</entry>
  </properties>
</fieldEditor>

Change History

comment:1 Changed 2 months ago by anonymous

Pregnant women who do not have good oral hygiene may become prone to gum disease such as gingivitis.Based on these facts, it is essential for the teenagers to be aware of all the safe ways of losing weight.They had self-discipline and the intrinsic motivation.She'd experimented with every thing to discover the solution on her own pregnancy also it required your ex 14 lengthy decades to locate the lacking little bit of the puzzle the lady ended up being painstakingly trying to find.As a result of AA, his energy body Read more on Lose Abdominal Fat and Lose Belly Fat and also visit on Health and Lifestyle Weight Loss Home 1. pregnancy diet chart It is very helpful to girls during the time of menstruation.They couldn't even agree to name four post offices.

Note: See TracTickets for help on using tickets.