Hi,

does nobody have an idea why the macro error is only shown when creating a
page via url?

Regards,
Dennis

2016-08-24 12:02 GMT+02:00 D R <rir....@gmail.com>:

> Hi,
>
> I have an issue with a template.
>
> I created Dashboard.CustomerDocsDashboard with the following content:
>
>
> ```
> {{velocity}}
> #if ($context.display == 'edit')
>   {{info}}
>   Du bist im Begriff den neuen Kunden-Dokument-Bereich "//$doc.title//" zu
> erstellen.
>
>   Um fortzufahren wähle eine der unten stehenden Buttons.
>   {{/info}}
> #else
>   {{dashboard/}}
> #end
> {{/velocity}}
>
> ```
>
> So far so good. When I enter WYSIWYG edit mode I get the info message, in
> wiki edit mode I get the source code, exactly how I want it.
>
> I also defined a template provider via XWiki administration. Creating a
> new document with the template also works as intended.
>
> Now the issue:
> I have an application with a button leading to the page creation:
>
> http://localhost:8080/xwiki/bin/inline/Customer+Docs/Test+
> Customer+2/WebHome?template=Dashboard.CustomerDocsDashboard.WebHome&
> parent=Customer+Docs.Test+Customer+2&title=Test+Customer+2
>
> The link worked correctly before without the velocity code and only
> ```{{dashboard/}}``` in the template but now via the URL I get
>
> "
> Failed to execute the [velocity] macro.
> org.xwiki.rendering.macro.MacroExecutionException: The execution of the
> [velocity] script macro is not allowed. Check the rights of its last author
> or the parameters if it's rendered from another script.
> "
>
> instead of the info message.
>
> Can somebody help me, please?
>
> Thansk in advance,
> Dennis
>
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to