Hi Johannes,
On Aug 27, 2013, at 11:04 AM, gru <johannes.grumboeck(a)porscheinformatik.at> wrote:
Hi everybody,
I have a kind of FAQ space in my wiki, where our operations team is
documenting sm-event descriptions.
After creating 144 documents I finally found out how to create a document
template.
Is there anyway to "convert" or "reassign" the new template to the
existing
documents?
XWiki supports the notion of structured documents (see
http://platform.xwiki.org/xwiki/bin/view/Features/Forms,
http://platform.xwiki.org/xwiki/bin/view/DevGuide/DataModel and
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial).
So maybe creating an XClass to represent your sm-event object would be the best. This will
allow you to get structured data, display them in livetables, query them, process them,
etc.
If by "templates" you mean
http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Applica…
then this is not about structured data, it's just some predefined content that you
copy when creating new pages.
So first, you need to choose whether you wish to use XClass/XObjects or Page Templates.
Then to convert your existing content you'll need to use scripting
(
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting) to read existing data, parse
it and store it in new data structures or new pages, then remove the old pages.
Hope it helps,
-Vincent
Best regards,
Johannes