On 04/22/2010 03:03 PM, Florian Rhomberg wrote:
Hi! Ifor some time I have written a macro which dsiplays the content of a space in a list. I wrote it as velocity macro. The makro works fine but in the meantime I realized that if a user is not logged on instead of the content of a space the following error is written:
The "spacecontent" macro is not in the list of registered macros
If the user is logged on everything is fine. What do I have to change that the macro also works if the user is not logged on. The macro is stored under this path: TechWiki<http://wiki.nettania.at/xwiki/bin/view/Main/> > XWiki Space> SpaceContent. I do not use a wiki farm only a single wiki installation. Therefore this link does not help me:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial#HPrerequ...
What am I doing wrong, I already changed that the unregistered user can read the page. And I also removed the XWiki Space from the hidden Spaces in xwiki.vars. This did not helped me.
Since the tutorial was written, a new field has been added to the macro object, called "Macro visibility". You must set it to "Current wiki" in order to make it work for all users. -- Sergiu Dumitriu http://purl.org/net/sergiu/