Hi everyone. I am trying to create a widget like discussionLibrary. I can't even get the bubble image in my widget.
I noticed that this part of the code does what I want var initialContent = null; if ((widgetData.canAdd || widgetData.canManage) && !query) { initialContent = oae.api.util.template().render($('#discussionslibrary-list-actions-template', $rootel)); } var url = '/api/discussion/library/' + widgetData.context.id; if (query) { url = '/api/search/discussion-library/' + widgetData.context.id; } // Set up the infinite scroll for the discussions library infinityScroll = $('.oae-list', $rootel).infiniteScroll(url, { 'limit': 12, 'q': query }, '#discussionslibrary-template', { 'initialContent': initialContent, 'postProcessor': function(data) { // Let the template know whether or not the current list // is a main list or a search list, as different paging // keys need to be provided for each data.query = query; return data; }, 'emptyListProcessor': function() { oae.api.util.template().render($('#discussionslibrary-noresults-template', $rootel), { 'query': query }, $('.oae-list', $rootel)); } }); }; I can see that in "initialContent" variable is the commented part in the discussionlibrary.html. That is what I want to render. In fact I can render it, but not the way it looks in "My Library" I get a lot of problems with the variable "url" and "query", if I take them out I think "infinityScroll" is not complete. I also noticed that you have other files in the /3akai-ux/shared/oae/api directory. Could you please tell me if these files are important for my widget? And also What is it that I am doing wrong? Thanks in advanced Jacqueline
_______________________________________________ oae-dev mailing list oae-dev@collab.sakaiproject.org http://collab.sakaiproject.org/mailman/listinfo/oae-dev