Hi, Is it possible to configure some panels, so they default on collapsed; and the user has to click on title bar to see content. In some cases this could reduce cluttered screens Gerritjan
I was going to make a thread asking this but found this one. Is there any way to default panels as collapsed? Lockie. -- View this message in context: http://xwiki.475771.n2.nabble.com/Panels-tp5306756p5451436.html Sent from the XWiki- Users mailing list archive at Nabble.com.
On 08/23/2010 06:46 AM, Lockie wrote:
I was going to make a thread asking this but found this one. Is there any way to default panels as collapsed?
All panels, or just some? -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu-2 wrote:
On 08/23/2010 06:46 AM, Lockie wrote:
I was going to make a thread asking this but found this one. Is there any way to default panels as collapsed?
All panels, or just some?
I'm looking at having them all closed and I'm using the colibri skin if it helps. Thanks, Lockie. -- View this message in context: http://xwiki.475771.n2.nabble.com/Panels-tp5306756p5454672.html Sent from the XWiki- Users mailing list archive at Nabble.com.
On 08/24/2010 01:17 AM, Lockie wrote:
Sergiu Dumitriu-2 wrote:
On 08/23/2010 06:46 AM, Lockie wrote:
I was going to make a thread asking this but found this one. Is there any way to default panels as collapsed?
All panels, or just some?
I'm looking at having them all closed and I'm using the colibri skin if it helps.
Then you can create a JavaScript extension (see http://platform.xwiki.org/xwiki/bin/DevGuide/SkinExtensionsTutorial ) with the following code: document.observe('xwiki:dom:loaded', function() { $$('.panel').each(function(item) { item.removeClassName('expanded'); item.addClassName('collapsed'); }); }); and set the extension to be used "Always on this wiki". -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu-2 wrote:
Then you can create a JavaScript extension (see http://platform.xwiki.org/xwiki/bin/DevGuide/SkinExtensionsTutorial ) with the following code:
document.observe('xwiki:dom:loaded', function() { $$('.panel').each(function(item) { item.removeClassName('expanded'); item.addClassName('collapsed'); }); });
and set the extension to be used "Always on this wiki".
Thanks! That worked fine. One final quick question- I have a panel for each space, and I need each of these panels to automatically display a list of pages within their respective space to work as a menu. The http://code.xwiki.org/xwiki/bin/view/Snippets/ChildParentSnippet ChildParentSnippet code seems to work in panels, but now I need help in determining what part of it I can change so that it only picks up pages of individual spaces. Because I'm making the panels manually, I can put the space names into the code manually. Thanks, Lockie. -- View this message in context: http://xwiki.475771.n2.nabble.com/Panels-tp5306756p5455547.html Sent from the XWiki- Users mailing list archive at Nabble.com.
(Sorry, posted this reply in the wrong thread) Ah nevermind I found the answer in the FAQ, was alot simpler than I thought: -- #foreach ($item in $xwiki.searchDocuments("where doc.web='SpaceName'")) * [$item] #end -- It makes a "Web Home" link though, how can I get rid of that? So far I'm stuck at: -- #set ($hiddenpage = ["SpaceName.WebHome"]) #foreach ($item in $xwiki.searchDocuments("where doc.web='SpaceName'")) #if ($hiddenpage.contains($item) __something__ * [$item] #end #end -- Thanks for your patience Lockie. -- View this message in context: http://xwiki.475771.n2.nabble.com/Panels-tp5306756p5455654.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
Gerritjan Koekkoek -
Lockie -
Sergiu Dumitriu