[xwiki-users] Creating structured pages
Hi, I was just wondering how can I define a class in xwiki, and use it on a page in order to create a structured page. My intention is to define a set of structured pages so I can use the livetable macro. Can anyone help me please? Thanks in advance, Best Regards - Roney Castro
Hi Roney, The FAQ tutorial is a great way of discovering XWiki as a development platform. You can check it out at: http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial Later on, you can take a look at: http://code.xwiki.org/xwiki/bin/view/Macros/LiveTableMacro and http://platform.xwiki.org/xwiki/bin/view/DevGuide/LiveTable, but the last one is still a work in progress. Oana CASTRO roney wrote:
Hi, I was just wondering how can I define a class in xwiki, and use it on a page in order to create a structured page. My intention is to define a set of structured pages so I can use the livetable macro. Can anyone help me please? Thanks in advance, Best Regards
- Roney Castro _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Mon, Sep 14, 2009 at 5:56 AM, Oana Tabaranu <[email protected]> wrote:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial
FYI -- One thing that might "bite" the newbie Xwiki programmer that starts out with Xwiki 2.0. Most of the documents mentioned in the tutorial that help you create code are 1.0 based and expect to save documents in 1.0 format. In 2.0, the default document format changed to 2.0, but the various scripts/documents implicitly assume 1.0 format. To fix, re-save the documents automatically created by XWikiClasses<http://www.xwiki.org/xwiki/bin/view/XWiki/XWikiClasses?viewer=code&showlinenumbers=0> , ClassSheet<http://www.xwiki.org/xwiki/bin/view/XWiki/ClassSheet?viewer=code&showlinenumbers=0>, etc as 1.0 format. The fact that they're initially in 1.0 syntax and marked as 2.0 causes lots of errors. Question: For 2.0 final, will these end up being 2.0-based, or will there be a bugfix to ensure they write out 1.0 documents? Perhaps the 1.0 API for saving documents should automatically create 1.0 documents, and a new API call can be used to save 2.0-based docs which would automatically create 2.0's. That way old code stays working, and new code stays 2.0. Niels http://nielsmayer.com
On Sep 15, 2009, at 5:29 PM, Niels Mayer wrote:
On Mon, Sep 14, 2009 at 5:56 AM, Oana Tabaranu <[email protected]
wrote:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial
FYI -- One thing that might "bite" the newbie Xwiki programmer that starts out with Xwiki 2.0. Most of the documents mentioned in the tutorial that help you create code are 1.0 based and expect to save documents in 1.0 format. In 2.0, the default document format changed to 2.0, but the various scripts/documents implicitly assume 1.0 format.
To fix, re-save the documents automatically created by XWikiClasses<http://www.xwiki.org/xwiki/bin/view/XWiki/XWikiClasses?viewer=code&showlinen...
, ClassSheet<http://www.xwiki.org/xwiki/bin/view/XWiki/ClassSheet?viewer=code&showlinenum...
, etc as 1.0 format. The fact that they're initially in 1.0 syntax and marked as 2.0 causes lots of errors.
Question: For 2.0 final, will these end up being 2.0-based,
It's been 2.0-based since 2.0M3. Thanks -Vincent
or will there be a bugfix to ensure they write out 1.0 documents? Perhaps the 1.0 API for saving documents should automatically create 1.0 documents, and a new API call can be used to save 2.0-based docs which would automatically create 2.0's. That way old code stays working, and new code stays 2.0.
Niels http://nielsmayer.com
On Tue, Sep 15, 2009 at 8:35 AM, Vincent Massol <[email protected]> wrote:
Question: For 2.0 final, will these end up being 2.0-based,
It's been 2.0-based since 2.0M3.
Sorry for the false alarm. I guess I need to upgrade some code ... Thanks Vincent. Niels http://nielsmayer.com
participants (4)
-
CASTRO roney -
Niels Mayer -
Oana Tabaranu -
Vincent Massol