Sorry to hijack this conversation. I hadn't seen the enabledDashboardWidgets property in config.js yet, and so digged in to the origin of this property, as having to enable the widget in the central config file seems odd. It looks like this was introduced in SAKIII-4856, and I've got a feeling that this should have never been merged.

Every widget already has an enabled property and a property that determines whether or not the widget is available for the personal dashboard. It doesn't feel right to have 2 places where this can be configured and the problems Nico is having indicate that it adds confusion for deployment. My guess is that this patch was created because it's currently not straightforward enough to enable/disable at runtime, but it might be the wrong solution to the problem. Coming back to the thread that Duffy started, we would be able to put a very simple administrative UI on top of this if we just fixed the Sling- Initial-Content problem for widgets.

Widget config files are going to be a part of the upcoming UI work anyway (as we have unused properties in there right now and need to be looking at configurability). Does it seem reasonable to pencil in the SAKIII-4856 fix for a revert? If so, I'll go ahead and create a JIRA for it.

[1] https://jira.sakaiproject.org/browse/SAKIII-4856

Kind regards,
Nicolaas



On 4 May 2012, at 19:10, Christian Vuerings wrote:

Hi Nico,

I digged a bit deeper and it seems like you need to add "mysakai2" to the following array in /dev/config.js:
enabledDashboardWidgets

- Christian

On May 4, 2012, at 10:45 AM, Coetzee, Nico wrote:

This message (and attachments) is subject to restrictions and a disclaimer. Please refer to http://www.unisa.ac.za/disclaimer for full details.

Hi Christian

Thanks for the reply

No I do not see the My Sakai 2 favorites widget, attached is my screen shot

<Screen shot 2012-05-04 at 7.41.41 PM.png>

The Result of http://localhost:8080/devwidgets/mysakai2/ config.json :
{
    "i18n": {
        "default": {
"bundle": "/devwidgets/mysakai2/bundles/ default.properties",
            "name":" My Sakai 2 favorites",
            "description":" My Sakai 2 favorites"
        },
        "en_GB": {
"bundle": "/devwidgets/mysakai2/bundles/ en_GB.properties",
            "name":"My Sakai 2 favourites",
            "description":"My Sakai 2 favourites"
        }
    },
    "img":"/devwidgets/mysakai2/images/s2icon.png",
    "id":"mysakai2",
    "personalportal":true,
    "type":"sakai",
    "enabled":true,
    "hasSettings":false,
    "url":"/devwidgets/mysakai2/mysakai2.html"
}



On 04 May 2012, at 5:15 PM, Christian Vuerings wrote:

Hey Nico,


Do you see the My Sakai 2 favorites widget in the list when you click "Add widgets" on the dashboard?

If not, can you browse to http://localhost:8080/devwidgets/mysakai2/config.json and verify that the personalportal variable is set to true there as well?
I assume that you checked the config.json on your local filesystem.


- Christian

[1] http://cl.ly/GMMM

On May 4, 2012, at 3:55 AM, Coetzee, Nico wrote:

This message (and attachments) is subject to restrictions and a disclaimer. Please refer to http://www.unisa.ac.za/disclaimer for full details.

Hi All

I'm trying to get a Hybrid installation of sakai3 and sakai2 working.

I took the nightly.sh found in the documentation @ https://confluence.sakaiproject.org/display/KERNDOC/Building+and+Configuring+a+Hybrid+Deployment , and changed it to make it work on my server.

I get sakai3 up and running, can login as admin user and are busy with the troubleshooting at the bottom of the page.

I get pass points 1,2,3,4,5, but the "My Sakai 2 Favourite" widget is not showing up in the admin user's dashboard (piont 6). I have checked the devwidgets/mysakai2/config.json in 3sakai-ux and everything looks fine there:
{
   "i18n": {
       "default": {
"bundle": "/devwidgets/mysakai2/bundles/ default.properties",
           "name":" My Sakai 2 favorites",
           "description":" My Sakai 2 favorites"
       },
       "en_GB": {
"bundle": "/devwidgets/mysakai2/bundles/ en_GB.properties",
           "name":"My Sakai 2 favourites",
           "description":"My Sakai 2 favourites"
       }
   },
   "img":"/devwidgets/mysakai2/images/s2icon.png",
   "id":"mysakai2",
   "personalportal":true,
   "type":"sakai",
   "enabled":true,
   "hasSettings":false,
   "url":"/devwidgets/mysakai2/mysakai2.html"
}


Can someone point me in the right direction?

Thanks


Nico Coetzee
Designer Developer
ICT
Unisa Main Campus
Preller Street
Pretoria
Tel: +27 (012) 429-4661
Fax : 0862756913

<Unisa-email-signature_UNGC.gif><image002.gif>









_______________________________________________
oae-dev mailing list
[email protected]
http://collab.sakaiproject.org/mailman/listinfo/oae-dev



Nico Coetzee
Designer Developer
ICT
Unisa Main Campus
Preller Street
Pretoria
Tel: +27 (012) 429-4661
Fax :

<Unisa-email-signature_UNGC.gif><image002.gif>










_______________________________________________
oae-dev mailing list
[email protected]
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

_______________________________________________
oae-dev mailing list
[email protected]
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to