Re: [xwiki-users] Dashboard does not remember layout

2013-05-23 Thread Hamster
Succes!!!

Using the Column Macro instead of the Container Macro fixed the issue!!!

I can now (indepedantly) set the number of columns for my TOC (Column Macro)
and my Dashboard (which uses the Contrainer Macro)!



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Dashboard-does-not-remember-layout-tp7585306p7585350.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] Dashboard does not remember layout

2013-05-23 Thread Hamster
Right, I have been able to narrow the problem down to a custom macro I have
created.

As soon as I add this macro to the page, the columns of the dashboad are
overruled by this macro!

This macro is using the {{container}} macro to display all the child-pages
of a page. My guess is that a page only knows one "container", and that the
'nr_of_columns' of my custom macro is setting the number of columns of the
whole page (and thus also the dashboad).

As soon as I changed the 'nr_of_columns' of my custom macro to 2, the
dashboard was also displayed with two columns.

I have noticed the  Column Macro
   so
maybe I was using the wrong code-snippet?

I will rework my custom macro to use the Column Macro, I will let you guys
know what happens!



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Dashboard-does-not-remember-layout-tp7585306p7585349.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] Dashboard does not remember layout

2013-05-23 Thread Hamster
This is a XAR of the page which is giving me trouble...

KAM.WebHome.xar
  



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Dashboard-does-not-remember-layout-tp7585306p7585347.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] Dashboard does not remember layout

2013-05-23 Thread Sergiu Dumitriu
On 05/23/2013 06:00 AM, Hamster wrote:
> Okay...I want to try something else:
> 
> How can I "delete" the dashboard?
> 
> Because when I remove the {{dashboard/}} from the page, it will remove the
> dashboard, but when I put {{dashboard/}} back onto the page, it has
> remembered the old dashboard.
> 
> Where does this dashboard get stored? (so I can remove it)
> 

In objects attached to the document. The {{dashboard}} macro just
displays those objects, so deleting the macro will leave the objects in
place.

To forget the whole dashboard, remove all the XWiki.GadgetClass objects
from the document.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Dashboard does not remember layout

2013-05-23 Thread Hamster
Okay...I want to try something else:

How can I "delete" the dashboard?

Because when I remove the {{dashboard/}} from the page, it will remove the
dashboard, but when I put {{dashboard/}} back onto the page, it has
remembered the old dashboard.

Where does this dashboard get stored? (so I can remove it)



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Dashboard-does-not-remember-layout-tp7585306p7585332.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] Dashboard does not remember layout

2013-05-23 Thread Vincent Massol

On May 23, 2013, at 8:25 AM, Hamster  wrote:

> Vincent,
> 
> Could you try this:
> 
> 1) Create a new space, but use a *blank page* (not a dashboard)
> 2) Edit that page and insert some text onto that page and also
> {{dashboard/}}
> 3) Edit that page inline and add some gadgets and columns the dashboard
> 
> Does the dashboard remember the layout?

Yes. All worked fine for me.

Thanks
-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Dashboard does not remember layout

2013-05-22 Thread Hamster
Vincent,

Could you try this:

1) Create a new space, but use a *blank page* (not a dashboard)
2) Edit that page and insert some text onto that page and also
{{dashboard/}}
3) Edit that page inline and add some gadgets and columns the dashboard

Does the dashboard remember the layout?



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Dashboard-does-not-remember-layout-tp7585306p7585323.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] Dashboard does not remember layout

2013-05-22 Thread Vincent Massol
Hi,

On May 22, 2013, at 5:07 PM, Hamster  wrote:

> Hi all,
> 
> I have a problem with our dashboard:
> 
> Steps:
> 1) I edit the dashboard
> 2) I add a column
> 3) I drag a gadget to that new column
> 4) Save the page
> 
> The dashboard does not save the new layout, and throws everything in one
> column.
> 
> If I edit the Objects of that page, the positions of the gadgets are correct
> (for example (2,1))
> 
> It just doesn't get displayed correctly :-(

Works fine for me.

If you want any help you'll need to provide us with a way to reproduce this. 
Best would be a XAR export of the dashboard page.

Thanks
-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Dashboard does not remember layout

2013-05-22 Thread Hamster
Hi all,

I have a problem with our dashboard:

Steps:
1) I edit the dashboard
2) I add a column
3) I drag a gadget to that new column
4) Save the page

The dashboard does not save the new layout, and throws everything in one
column.

If I edit the Objects of that page, the positions of the gadgets are correct
(for example (2,1))

It just doesn't get displayed correctly :-(




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Dashboard-does-not-remember-layout-tp7585306.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