Hi Guillaune
Guillaume Lerouge wrote:
Hi Devs,
Silvia and I have been working on updating & improving the FAQ tutorial
located at:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial
Apart from the conversion to 2.0, the most notable change I brought is to
provide some code to be used on the homepage of the FAQ space. This code
removes the need for the user to go to the FAQ.FAQClass page to create new
FAQs documents.
I don't understand. I think we used to have a "click here to see the
code needed to create new items of this class" in the class editor, but
I can't find it anymore in XWiki 2.0. It sounds like a regression to me.
In my opinion, the new entry code we propose on the FAQ tutorial should
be voted here before being changed, as we have to agree on what we
consider best practice. (For example, there is a major difference in the
former code and this new one on the document name-cleaning strategy).
Jerome.
It's more in line with our current best practices
for
application (very little applications create new items directly from the
class page).
However in doing so I'm not sure I used the most streamlined code. I'd be
glad if some users could try following the tutorial to see whether it meets
their need and if a dev could give it a look in order to improve it further.
Thanks,
Guillaume