Hi Andreas, On Nov 17, 2007, at 12:49 AM, Andreas wrote:
> Is there a way to get the back-links for properties of a custom > class instances? This is a current limitation. In the future we'd like to implement renaming of object properties too. See http://jira.xwiki.org/jira/browse/XWIKI-1341 Help is welcome. Thanks -Vincent > The current backlinks infrastructure seems to work only over links of > ordinary Documents. > In particular, on line 1507 of com.xpn.xwiki.storeXWikiHibernateStore, > in the saveLinks function of a recent SVN checkout it says: > > XWikiRenderer renderer = > renderContext.getWiki().getRenderingEngine().getRenderer("wiki"); > renderer.render(doc.getContent(), doc, doc, > renderContext); > links = (List) renderContext.get("links"); > How can this be parameterized, so that links contained in property > values of custom Class Instances are being included into the links > variable? > > > > Example: > Class Car: > > Instance Space1.car1 > Property "carsThatAreFaster": values: "Space1.car2" > > where Space1.car2 is a link to another Car instance. The above > saveLinks function does not update the BackLinks table with the > Space1.car2 link. > > Any ideas are appreciated. > Thanks, > Andreas > ______________________________ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
