Hi, There's a feature you might want to use for your use case: if a page title is not set then the first level 1 heading in the document content is used. This means that you can compute the title in the Sheet and display it in a level 1 heading.
JV. On Wed, Jul 7, 2010 at 8:25 PM, Ivan Levashew <i.levas...@bluebottle.com> wrote: > Hello! > > My experience with classes in XWiki is obtained after creating a Todo > application. The tutorial is published here: > http://www.theserverside.com/news/1363830/XWiki-A-Platform-for-Collaborative-Apps > > It is obsoleted, but I've got the basics. > > There is a class fabric at XWiki.XWikiClasses. It is straightforward to > create a Class, a Sheet and a Template using this fabric. Sheet is being > used to hold control over presentation of increasing number of class > instances and Template injects a reference to Sheet in new instances. > > Everything is fine, but I don't understand how to hold control over page > titles. That is, if once in a blue moon I will want to change title > format from $doc.getObject('SomeSpace.SomeClass').get('SomeField') to > something different, every class instance must be affected (except those > ones which have their title edited manually). > > My naive tries don't work as expected. Is it ever possible? > > -- > If you want to get to the top, you have to start at the bottom > > _______________________________________________ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users