[xwiki-users] Run Macro inside velocity
Hi All, i just uploaded a new extension to http://extensions.xwiki.org/xwiki/bin/view/Extension/TaskMacro. I want to enable in inside Can i do that? Regards, Matthias -- View this message in context: http://xwiki.475771.n2.nabble.com/Run-Macro-inside-velocity-tp7593608.html Sent from the XWiki- Users mailing list archive at Nabble.com.
On Thu, Jan 8, 2015 at 9:35 PM, Matthias Wegner <[email protected]> wrote:
Hi All,
i just uploaded a new extension to http://extensions.xwiki.org/xwiki/bin/view/Extension/TaskMacro.
I want to enable in inside
Is there something missing to this phrase ?
Can i do that?
Regards, Matthias
-- View this message in context: http://xwiki.475771.n2.nabble.com/Run-Macro-inside-velocity-tp7593608.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
Hi, If I were to guess, I`d say you want to make it installable with the Extension Manager UI. To do that, all you need is to add an ExtensionCode.ExtensionVersionClass object to your extension's page where you need to fill in the id of your extension, version and downloadURL (for attached files, use "attach:<fileName>.jar/xar" To do this semi-automatically, you need to edit inline your extension and go to the "Add Downloads" section and read the instructions. One note on your extension is that you seem to have both a jar and a xar. In this case, you need to have an extension document for each artifact, since you can not have 2 artifacts for 1 extension. You should have an extension for the UI (xar) that depends on an extension for the backend (jar), each with their own documentation and each with their own ExtensionVersionClass objects so they are installable with EM. Thanks, Eduard On Fri, Jan 9, 2015 at 10:21 AM, Thomas Mortagne <[email protected]> wrote:
On Thu, Jan 8, 2015 at 9:35 PM, Matthias Wegner <[email protected]> wrote:
Hi All,
i just uploaded a new extension to http://extensions.xwiki.org/xwiki/bin/view/Extension/TaskMacro.
I want to enable in inside
Is there something missing to this phrase ?
Can i do that?
Regards, Matthias
-- View this message in context:
http://xwiki.475771.n2.nabble.com/Run-Macro-inside-velocity-tp7593608.html
Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Fri, Jan 9, 2015 at 10:21 AM, Thomas Mortagne <[email protected]> wrote:
On Thu, Jan 8, 2015 at 9:35 PM, Matthias Wegner <[email protected]> wrote:
Hi All,
i just uploaded a new extension to http://extensions.xwiki.org/xwiki/bin/view/Extension/TaskMacro.
I want to enable in inside
Is there something missing to this phrase ?
Yes, {{velocity}} #if ($xwiki.getUser().isUserInGroup('XWiki.AGroup')) {{task}}A Task{{/task}} #end {{/velocity}} Checkout the Nabble link.
Can i do that?
Regards, Matthias
-- View this message in context: http://xwiki.475771.n2.nabble.com/Run-Macro-inside-velocity-tp7593608.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Then I don't really understand the question. This code does not work ? You want to know how to do the same thing in Java ? You can access the current XWikiContext by injecting in your macro component and then you have pretty much the same API than in the script oriented one, something like @Inject private Provider<XWikiContext> xcontextProvider; [...] XWikiContext xcontext = xcontextProvider.get(); xcontext.getWiki().getUser(xcontext).isUserInGroup('XWiki.AGroup')) On Mon, Jan 12, 2015 at 10:10 AM, Marius Dumitru Florea <[email protected]> wrote:
On Fri, Jan 9, 2015 at 10:21 AM, Thomas Mortagne <[email protected]> wrote:
On Thu, Jan 8, 2015 at 9:35 PM, Matthias Wegner <[email protected]> wrote:
Hi All,
i just uploaded a new extension to http://extensions.xwiki.org/xwiki/bin/view/Extension/TaskMacro.
I want to enable in inside
Is there something missing to this phrase ?
Yes,
{{velocity}} #if ($xwiki.getUser().isUserInGroup('XWiki.AGroup')) {{task}}A Task{{/task}} #end {{/velocity}}
Checkout the Nabble link.
Can i do that?
Regards, Matthias
-- View this message in context: http://xwiki.475771.n2.nabble.com/Run-Macro-inside-velocity-tp7593608.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
participants (4)
-
Eduard Moraru -
Marius Dumitru Florea -
Matthias Wegner -
Thomas Mortagne