pconkie Posted July 8, 2017 Share Posted July 8, 2017 Sharing this in case it is of use to anybody else..... I've been looking at creating a widget that is aware of and can interact with other widgets around it. As a test case I've made a "class discussion" widget that is like a forum, but only for members of a pre-determined class. Even then, some members of the class are allowed to see what others are writing and others are not. Some get a writing frame to structure their response and others don't. This widget needs to "take over" a forum widget in order to save the settings I've mentioned and also to save the students responses. However I want to avoid having to use the console to inspect the forum and go hunting for it's uuid. So far I've got this.... https://drive.google.com/open?id=0B2QYvi40BJqDSWI5dWZOZmJPUlE Link to comment Share on other sites More sharing options...
Graham Quince Posted July 9, 2017 Share Posted July 9, 2017 A widget preference to select another widget would be really useful. If you post it on the ideas portal, I'll get interest going in the office. @Chris.Smith - Is a widget preference like this is possible? Link to comment Share on other sites More sharing options...
ADT Posted July 10, 2017 Share Posted July 10, 2017 On 08/07/2017 at 22:01, pconkie said: Sharing this in case it is of use to anybody else..... I've been looking at creating a widget that is aware of and can interact with other widgets around it. As a test case I've made a "class discussion" widget that is like a forum, but only for members of a pre-determined class. Even then, some members of the class are allowed to see what others are writing and others are not. Some get a writing frame to structure their response and others don't. This widget needs to "take over" a forum widget in order to save the settings I've mentioned and also to save the students responses. However I want to avoid having to use the console to inspect the forum and go hunting for it's uuid. So far I've got this.... https://drive.google.com/open?id=0B2QYvi40BJqDSWI5dWZOZmJPUlE Shouldn't you be doing timetables or something??? 1 Link to comment Share on other sites More sharing options...
Chris.Smith Posted August 17, 2017 Share Posted August 17, 2017 On 08/07/2017 at 22:01, pconkie said: Sharing this in case it is of use to anybody else..... I've been looking at creating a widget that is aware of and can interact with other widgets around it. As a test case I've made a "class discussion" widget that is like a forum, but only for members of a pre-determined class. Even then, some members of the class are allowed to see what others are writing and others are not. Some get a writing frame to structure their response and others don't. This widget needs to "take over" a forum widget in order to save the settings I've mentioned and also to save the students responses. However I want to avoid having to use the console to inspect the forum and go hunting for it's uuid. So far I've got this.... https://drive.google.com/open?id=0B2QYvi40BJqDSWI5dWZOZmJPUlE On 09/07/2017 at 10:10, Graham Quince said: A widget preference to select another widget would be really useful. If you post it on the ideas portal, I'll get interest going in the office. @Chris.Smith - Is a widget preference like this is possible? @pconkie, @Graham Quince, It's pretty niche, a better approach would be for @Graham Quince to convince the management to let us open source the Forum widget as a FrogCode widget thus allowing @pconkie to copy it, and update it to his own needs. However, if you want to go down the preference route, then there are a copy of approaches I can think of. The best would be to add a hidden preference to the widget, and then in edit mode get the user to click on the widget they want the "Class Discussion" widget to listen to. You could then store its content uuid in the hidden preference's value attribute. Let me know how you get on, ~ Chris Link to comment Share on other sites More sharing options...
pconkie Posted August 17, 2017 Author Share Posted August 17, 2017 (edited) 1 hour ago, Chris.Smith said: It's pretty niche, a better approach would be for @Graham Quince to convince the management to let us open source the Forum widget as a FrogCode widget thus allowing @pconkie to copy it, and update it to his own needs. I prefer this approach! What do you think @Graham Quince?! Edited August 17, 2017 by pconkie Link to comment Share on other sites More sharing options...
Graham Quince Posted August 18, 2017 Share Posted August 18, 2017 I'd be fine with this. Let me ask some questions. Being realistic, what I'm going to be asking for is Chris' time. Link to comment Share on other sites More sharing options...
ADT Posted August 18, 2017 Share Posted August 18, 2017 Will you lot just get a room................ somewhere dark... with cans of Red Bull... somewhere you can grow your hair long.... and not wash... Somewhere networked so you can play games together.... and Pizza Hut on speed dial!!!!! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now