Paul Libbrecht wrote:
>
> Hello list,
>
> I just realized that there seems to be very little executable code
> interpreted in the document bundle documents.
>
> I was simply trying to make a document that is declared as
> document-bundle to be an include of another document and it did not work
> with any of the include methods I found at
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/IncludeInVelocity
> should it work?
>
> But maybe no script is running in the programme that reads the
> document-bundle in which case this is easily understandable.
>
> Another reason for which it would be lovely to have scripting in
> document-bundles is in bundles that repeat a lot. In Curriki this is
> often the case because bundles come from different applications and may,
> indeed, in the very long run, become different (e.g. because we reach
> yet another language or...): here I would love that for English, at
> least, it is explicitly written
>
> key.name = $msg.get('other.key.name')
>
> is that thinkable?
Yes, it does make sense. Currently we're manually calling
$xwiki.parseContent($msg.get("...")) in order to do this. I guess this
is a viable feature for the localization component, feel free to create
a Jira issue for this, so that we don't forget about it.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs