[xwiki-users] [XWiki Macro] Tabs
Hello, We have designed a simple tab macro. Sharing it for those who might need it. Attached are the files with code that you need to define the macro. * Macro page space: Macro * Macro page name: Macro.XWikiMacroTabs (actually you can change this, but you'll need to update $xwiki.jsx.use('Macro.XWikiMacroTabs') directive in the MacroObjectDefinition.vm) * Macro page content: http://n2.nabble.com/file/n4857504/MacroPage.txt MacroPage.txt * Js object definition: http://n2.nabble.com/file/n4857504/JavascriptObjectDefinition.js JavascriptObjectDefinition.js * Macro object definition: http://n2.nabble.com/file/n4857504/MacroObjectDefinition.vm MacroObjectDefinition.vm Please reference http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial WikiMacroTutorial if you've never created a wiki-macro before. I know that the macro is not perfect (there are several known issues, see MacroPage.txt), well writing it I have remembered why I like Java and dislike JS/CSS :). Yet the macro does the work that we need it to and maybe will be useful to someone as well. Regards, Roman -- View this message in context: http://n2.nabble.com/XWiki-Macro-Tabs-tp4857504p4857504.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Asiri Rathnayake wrote:
You should create an entry in http://code.xwiki.org/xwiki/bin/view/Macros/and publish your macro.
Few screen shots would really help :)
Hi again, I have improved the macro and its syntax. And as suggested by Asiri, posted the macro to the repository: http://code.xwiki.org/xwiki/bin/view/Macros/TabsMacro http://code.xwiki.org/xwiki/bin/view/Macros/TabsMacro Regards, Roman -- View this message in context: http://n2.nabble.com/XWiki-Macro-Tabs-tp4857504p4866353.html Sent from the XWiki- Users mailing list archive at Nabble.com.
On Apr 7, 2010, at 7:32 PM, coldserenity wrote:
Asiri Rathnayake wrote:
You should create an entry in http://code.xwiki.org/xwiki/bin/view/Macros/and publish your macro.
Few screen shots would really help :)
Hi again,
I have improved the macro and its syntax. And as suggested by Asiri, posted the macro to the repository: http://code.xwiki.org/xwiki/bin/view/Macros/TabsMacro http://code.xwiki.org/xwiki/bin/view/Macros/TabsMacro
cool. One comment: I think idsToLables has a spelling mistake. Thanks -Vincent
Hello Vincent! Thanks for noticing! I have updated the package and page description. There's a set of rendering issues related to white-spaces around directives. You might want to check them in-action on the home-page of the macro (Macro.TabsMacro), section "Interesting layout bugs". Regards, Roman -- View this message in context: http://n2.nabble.com/XWiki-Macro-Tabs-tp4857504p4876179.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
coldserenity -
Vincent Massol