[xwiki-users] Xwiki Enterprise 4.4: Customizing Velocity macros
Hello I'm using XWiki Enterprise 4.4 and I'm customizing the XWiki skin by using the Colibri skin a as a base. Looking through the menuview.vm Velocity template, I found out that the #xwikitopmenuentry macro is being used generate the HTML for the "ADD", "XWIKI", "Space" and "Page" menus. I have added a "Macros" attribute to the XWikiSkins class, created a copy of macros.vm into the /xwiki/skins/myskin/templates, and set the "Macros" attribute to #renderTemplate('templates/macros.vm'). I then wrote a new Velocity macro inside this file (called "#xwikitopmenuentry2") and modified the menuview.vm file to call #xwikitopmenuentry2 but I still see the old code being generated. So, it doesn't seem that I'm doing this the right way. Any idea how I can do this? Thank you. Naoufel Chbihi Technical Specialist | Spécialiste technique Mainframe Operating System Technology | Technologie du système d'exploitation des ordinateurs centraux Service Management & Delivery (SM&D) | Gestion et prestation des services (GPS) Information Technology Services Branch (ITSB) | Direction générale des services d'infotechnologie (DGSIT) Shared Services Canada | Services partagés Canada 7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7 Tel.: 613-748-2169 Fax: 613-748-2617 E-mail: [email protected] | [email protected]
participants (1)
-
Naoufel Chbihi