[MAGNOLIA-276] Default Values for Input Controls Created: 03/Feb/05  Updated: 23/Jan/13  Resolved: 16/May/06

Status: Closed
Project: Magnolia
Component/s: admininterface
Affects Version/s: 2.0 Final
Fix Version/s: 3.0 RC1

Type: Improvement Priority: Minor
Reporter: Bert Schulzki Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File defaultValuePatch.patch     Text File defaultValuePatch2.patch    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

It should be possible to configure default values for textual input (like it is already possible for select control).

Realization could be done by adding a new nodedata for the configNode called "defaultValue", that would be loaded as value, if the contentNode is empty (what indicates, that the content was never saved so far).



 Comments   
Comment by David Smith [ 13/Aug/05 ]

I've been in need of this one myself and have created a patch for it in the DiaglogSuper class. The limited testing I've done doesn't show it to interfere with anything else. To take advantage of it, simply create a defaultValue nodedata in the dialog control config. Patch created against 2.1-RC4.

Comment by David Smith [ 14/Aug/05 ]

Ok, further testing showed that last patch to be a bust. It not only provided a default value to the text edit type controls, but also overrode the default setting for other controls like radio buttons.

This is a replacement to that patch (throw the first one out please) that's a bit more targeted. It provides a default value to edit, date, link, fckEdit, and richEdit controls and supports the use if i18n resource bundles consistent with the way control titles and descriptions are handled.

As before, to provide a default value to one of the controls listed above, simple create a node data named 'defaultValue'.

Patch created against version 2.1 RC4.

Comment by Philipp Bracher [ 16/May/06 ]

aplied ... sorry for being late

Generated at Mon Feb 12 03:15:49 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.