[xwiki-users] copying WebPreferences from space to space
Hi everybody! I need to setup preferences of a space (created by my code). I can create WebPreferences page and after this - add related object, when fill in properties ... But, is it possible to use $xwiki.copy(oldSpace.WebPreferences, newSpace.WebPreferences)? In fact, I have a "typical" WebPreferences, and I want to simple make a copy of it. I tried $xwiki.copy(typicalSpace.WebPreferences, newSpace.WebPreferences), page created, but unfortunatelly, properties of XWiki.XWikiPreferences doesn't fill in (object, attached in a page - exists). Whats may be a problem? Or maybe in this situation (WebPreferences - is a special page) - I shouldn't use $xwiki.copy method? -- Thanks beforehand! Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/copying-WebPreferences-from-space-to-space... Sent from the XWiki- Users mailing list archive at Nabble.com.
Sorry, it is my mystake! Should use $xwiki.copyDocument(... instead of $xwiki.copy(... -- View this message in context: http://xwiki.475771.n2.nabble.com/copying-WebPreferences-from-space-to-space... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (1)
-
Eugen Colesnicov