Re: [xwiki-users] Panels
Hi Gerritjan To display panels as collapsed, attach a Javascript sheet to a page (EditObjectsJavascript Extension). Put the following code in: document.observe('xwiki:dom:loaded', function() { $$('.panel').each(function(item) { item.removeClassName('expanded'); item.addClassName('collapsed'); }); }); Mark it as 'Always on this Wiki'. Hope this helps, Lockie - Lockie -- View this message in context: http://xwiki.475771.n2.nabble.com/Panels-tp6018944p6022132.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Dotx file attachments open as zips in IE8
Hi all I need to be able to attach Word 2007 templates (.dotx) on pages, but when I try downloading them in IE8 they download as zips full of xml files. I tracked down where this is held in xwikiWEB-INFweb.xml and towards the bottom of the file there are mime mappings and I notice the one for .dotx is missing? I tried adding mime-mapping extensiondotx/extension mime-typeapplication/msword/mime-type /mime-mapping mime-mapping extensiondotx/extension mine-typeapplication/vnd.openxmlformats-officedocument.templateml.template/mime-type /mime-mapping but that prevented my wiki from working (DNS error), so how can I alter the file to get .dotx files to download as .dotx? Thanks - Lockie -- View this message in context: http://xwiki.475771.n2.nabble.com/Dotx-file-attachments-open-as-zips-in-IE8-tp6022146p6022146.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Panels
Hello On Mon, Feb 14, 2011 at 3:22 AM, Lockie loc...@gmail.com wrote: Hi Gerritjan To display panels as collapsed, attach a Javascript sheet to a page (EditObjectsJavascript Extension). Put the following code in: document.observe('xwiki:dom:loaded', function() { $$('.panel').each(function(item) { item.removeClassName('expanded'); item.addClassName('collapsed'); }); }); This will collapse all the panels. Another temporary solution (until the issue will be fixed by someone), is to not use a macro, but to write directly the HTML structure of the header, inside the panel content: div class=panel collapsed h1 class=xwikipaneltitle onclick=XWiki.togglePanelVisibility(this.parentNode, '');_panel title_/h1 div class=xwikipanelcontents _here it comes the panel content_ #panelfooter() This way you set the status as being collapsed by default, for the current panel. Note that the cookies will not work anymore for such a panel and it will always be collapsed on loading the page. Raluca. Mark it as 'Always on this Wiki'. Hope this helps, Lockie - Lockie -- View this message in context: http://xwiki.475771.n2.nabble.com/Panels-tp6018944p6022132.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users