Hi all,
what is the best way (if any) to extend standard xwiki document by several additional parameters? So I would get standard wysiwyg edit view with several additional form inputs?
Thanks in advance,
kalor
Hi all,
what is the best way (if any) to extend standard xwiki document by several additional parameters? So I would get standard wysiwyg edit view with several additional form inputs?
Thanks in advance,
kalor
Yes, of course, but I would like to be able to edit document’s content, not a property of a custom object attached to that document, and other properties of that object. Based on this tutorial I would have to prepare a sheet that would allow display and edit of additional fields and somehow include a standard wysiwyg editor to manage content of document. And this is what causes me a problem ;). My other thoughts were to modify standard display of a document so it would include additional properties.
You could add an Xobject with all the needed properties including one with a text area for your content. Then you get exactly what you need. Editable properties plus WYSIWYG free text. You can even create a template provider for the document so that it feels like a standard xwiki document. Give it a try it. It’s easier than the look of the tutorial suggests and it makes documents queriable on the values of your properties.
If you follow the FAQ Tutorial using App Within Minutes you’ll see that on the second step (where you define the application structure) there is a field palette from where you can drag & drop the “Content” field.
Ok, thanks. I’ll check it with App Within Minutes
Thanks for reply, I didn’t considered abandoning the original content, but this might work. Although I’ll stick to App Within Minutes sollution to keep content in content .
Last question in this topic… Is there an easy way to hide “Blank Page” template and make a new one I created a default one? It seems I can achieve it by modyfying template files, but wandering if there is other way, the right one.
You can also use CSS
form#create .xwiki-select-category:first-child {
display: none !important;
}