[xwiki-users] Anything like a space-template?
Hi there, I'm wondering wether there is something like a space-template wherefrom all other spaces are inheriting. What I'd like to achieve: I do have a little piece of Velocity-code showing all documents within a space. So I *could* put that piece of code into every spave I've created (and will be created), however, since I'm lazy, I'd rather put it into some kind of space-template where all other spaces are inheriting from. Could somebody please point me into the right direction? TIA Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi
Hi Gregor, On Tue, Mar 23, 2010 at 12:04 PM, 2smart4u <[email protected]> wrote:
Hi there,
I'm wondering wether there is something like a space-template wherefrom all other spaces are inheriting.
What I'd like to achieve:
I do have a little piece of Velocity-code showing all documents within a space.
So I *could* put that piece of code into every spave I've created (and will be created), however, since I'm lazy, I'd rather put it into some kind of space-template where all other spaces are inheriting from.
Could somebody please point me into the right direction?
You could modify the page creation form so that it includes a hidden parameter forcing a Main/WebHomeTemplate page to be copied when creating new spaces. Guillaume
TIA
Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/
Hi Guillaume, On Tue, Mar 23, 2010 at 2:24 PM, Guillaume Lerouge <[email protected]> wrote:
You could modify the page creation form so that it includes a hidden parameter forcing a Main/WebHomeTemplate page to be copied when creating new spaces.
Thanks for that information, but a stuopid question is left on my side: *How* do I modify the page-cfreation-form? TIA Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi
Hi, On Tue, Mar 23, 2010 at 2:31 PM, 2smart4u <[email protected]> wrote:
Hi Guillaume,
On Tue, Mar 23, 2010 at 2:24 PM, Guillaume Lerouge <[email protected]> wrote:
You could modify the page creation form so that it includes a hidden parameter forcing a Main/WebHomeTemplate page to be copied when creating new spaces.
Thanks for that information, but a stuopid question is left on my side:
*How* do I modify the page-cfreation-form?
You need to override createdocument.vm Guillaume TIA
Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/
Hi Guillaume, sorry, but I don't get it: On Tue, Mar 23, 2010 at 3:10 PM, Guillaume Lerouge <[email protected]> wrote:
You need to override createdocument.vm
where am I supposed to find that one? I've looked in $CATALINA_HOME/webapps/xwiki/swiki/templates, but I can't find it. The only document I can see so far is "create.vm", but I got no idea how this template should be of any use. My assumption was that somewhere there should be a template which get's copied when a space is being created, and I'm looking for that one. If you could point me to some point in the docs, I'd also appreciate that. TIA Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi
participants (2)
-
2smart4u -
Guillaume Lerouge