title mandatory for documents
Good morning everybody, I would like the document's title to be a mandatory field. How can this be achieved? Thanks for any ideas/advices/help, Lars Heller
3 options: 1. Make a javascript that checks this. There is already one that checks the document content, you can add there the title check. 2. Modify the com.xpn.xwiki.web.SaveAction to refuse documents without a title. This should be configurable, as not all users want this. You can then submit a patch, so that we can integrate it in the trunk. 3. Make a JIRA issue ( http://jira.xwiki.org/ ) requesting 2, if you don't have the time to implement it. Maybe somebody else has some spare time. On 2/22/07, Lars Heller <[email protected]> wrote:
Good morning everybody,
I would like the document's title to be a mandatory field. How can this be achieved?
Thanks for any ideas/advices/help, Lars Heller
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Wow, that was quick! Many thanks, Lars
Wasn't this the origional purpose of the validation attribute added to Beta1 class properties? ________________________________ From: Sergiu Dumitriu [mailto:[email protected]] Sent: 22 February 2007 10:04 To: [email protected] Subject: Re: [xwiki-users] title mandatory for documents 3 options: 1. Make a javascript that checks this. There is already one that checks the document content, you can add there the title check. 2. Modify the com.xpn.xwiki.web.SaveAction to refuse documents without a title. This should be configurable, as not all users want this. You can then submit a patch, so that we can integrate it in the trunk. 3. Make a JIRA issue ( http://jira.xwiki.org/ ) requesting 2, if you don't have the time to implement it. Maybe somebody else has some spare time. On 2/22/07, Lars Heller <[email protected]> wrote: Good morning everybody, I would like the document's title to be a mandatory field. How can this be achieved? Thanks for any ideas/advices/help, Lars Heller -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto: [email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- http://purl.org/net/sergiu
On 2/22/07, Esbach, Brandon <[email protected]> wrote:
Wasn't this the origional purpose of the validation attribute added to Beta1 class properties?
On 2/22/07, Lars Heller <[email protected]> wrote:
Good morning everybody,
I would like the document's title to be a mandatory field. How can this be achieved?
Thanks for any ideas/advices/help, Lars Heller
Not really, since the validation attribute refers to class properties, and the document title is not a class property, but a simple string (a bean field). -- http://purl.org/net/sergiu
participants (3)
-
Esbach, Brandon -
Lars Heller -
Sergiu Dumitriu