[xwiki-users] AppWithinMinutes
Hi What is the best practice to extend AppWithinMInutes created sheets to manage the following controls; - UI Control for URL's, i've defined it as a short text field, And I would like to make it easy for the user to enter a valid url or link to XWiki page - UI Control for Email addresses (same as above) Currently the appWithinMinutes generates: ; <label for="CdLSAssociations.CdLSAssociationsClass_0_website">$doc.displayPrettyName('website', false, false)</label>## (% class="xHint" %)$msg.get('') : $doc.display('website') Gerritjan
Hi Gerritjan, On Thu, Mar 22, 2012 at 9:56 AM, Gerritjan Koekkoek <[email protected]> wrote:
Hi
What is the best practice to extend AppWithinMInutes created sheets to manage the following controls; - UI Control for URL's, i've defined it as a short text field, And I would like to make it easy for the user to enter a valid url or link to XWiki page - UI Control for Email addresses (same as above)
Currently the appWithinMinutes generates: ; <label for="CdLSAssociations.CdLSAssociationsClass_0_website">$doc.displayPrettyName('website', false, false)</label>## (% class="xHint" %)$msg.get('') : $doc.display('website')
You can either modify the generated sheet (just make sure you don't overwrite it when you re-edit the application class) or use the custom field display. For the later you have to edit the application class using the standard class editor (not the AppWithinMinutes one) and put some code in the "Custom Display" text area. See http://extensions.xwiki.org/xwiki/bin/view/Extension/Multiselect+custom+disp... for an example and http://xwiki.475771.n2.nabble.com/Help-with-custom-display-td508630.html for some explanations. You can also look at how the date picker is implemented using custom display. Check out AppWithinMinutes.Date page. Hope this helps, Marius
Gerritjan _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Gerritjan Koekkoek -
Marius Dumitru Florea