So, the NAG is back with yet another newbee question :wub:
I'm trying to create a plugin, that scans the database for specific info, and that part works very nicely, and I can dump the results into the log-file.
But what would the approach be to present the results to the user on the screen?
Been looking into the different containers avail in the doc, but simply can't seem to locate the correct one.
Simply put, I want a dialog or page to show with a contents like the following:
************************************
CongratZ
The result of WM in football for the next 3 times will be, in ordered numbers:
1....Denmark
2....Norway
3....Sweden
**********************************
Items should not be selectable, just simple text, or if I could get the framework to load a custom http page that I created, could also work
So, the NAG is back with yet another newbee question :wub:
I'm trying to create a plugin, that scans the database for specific info, and that part works very nicely, and I can dump the results into the log-file.
But what would the approach be to present the results to the user on the screen?
Been looking into the different containers avail in the doc, but simply can't seem to locate the correct one.
Simply put, I want a dialog or page to show with a contents like the following:
************************************
CongratZ
The result of WM in football for the next 3 times will be, in ordered numbers:
1....Denmark
2....Norway
3....Sweden
**********************************
Items should not be selectable, just simple text, or if I could get the framework to load a custom http page that I created, could also work
To create the beginning of a browsable tree of metadata items, the developer needs to create an ObjectContainer, populate it with objects and return it to the client. The objects in this container can point to other functions within the plug-in, allowing the developer to define a rich navigation hierarchy.
Maybe one can build some sort of fake tree structure with the results from your code?
Actually I don't even know why I bothered to answer you. I am totally rubbish with this sort of thing :)
Problem is that I do not want it to show links, and that's what I, AFAICS, is outlined here
Actually I don't even know why I bothered to answer you. I am totally rubbish with this sort of thing :)
I do, and actually my initial post, but changed it before hitting the send button, was that "Sweden is of cause @ the buttom here, just to pi** of Atrus" :D
And it worked....You got wheeled in -_-
I guess my answer must be, as you said, to create an object container, but use viewMode ="InfoList"
Sadly though, the darn framework is so powerfull, but so dense in it's documentation, blocking cool stuff from 3.Party, IMHO
The plugin framework isn't really well-suited to just presenting text. It's geared towards navigable hierarchies of containers and media. One work-around would be to use the summary field to present the text data to the user. Depending on the client, that may or may not provide a decent view.
Then no wonder I couldn't find the optimal solution within the framework :D
And huge kudo to you for the possible workaround, I'll look into that.
Regarding what I'm working on, is a simple reporting tool that would report unmatched items missing from Plex, and so far, it's actually working almost 100 %, except that I report to the darn log file, instead of towards the screen :(
So as it seems like you got the ear of the plugin-framework developer, could I perhaps sneek in an idea here for a new reporting container, that would simply present a list, as well as maybe a small icon do download that as html, txt or siml?
If above could be done, this would open up Pandora's box towards reporting, IMHO, and is needed for stats and so on
I really don’t see that sort of support being added to the framework. It’s not really in line with the “channels for online media” concept. That being said, I’ll bring your request to the attention of Jam (Plex Dev in charge of the Framework). Re: the InfoList view mode - Viewmode/viewgroup settings in channels are essentially a thing of the past. Client’s are expected to select the appropriate display format based on the content type. The intention (I think) is a more uniform feel across/between channels and library content. The trade-off is that channel developers have less control over the way in which the channel is laid out for viewing. In my experience, this is generally an issue more for unsupported plugins
I really don't see that sort of support being added to the framework. It's not really in line with the "channels for online media" concept.
So true, and I hear you here, I was however considering the framework not limited to just channels, but more as a fully blown framework, where you could hook in anywhere.
In my perfect world, I would hook into the tools menu, and add my own menu to launch my report
That being said, I'll bring your request to the attention of Jam (Plex Dev in charge of the Framework).
You're the man :wub:
Re: the InfoList view mode - Viewmode/viewgroup settings in channels are essentially a thing of the past. Client's are expected to select the appropriate display format based on the content type. The intention (I think) is a more uniform feel across/between channels and library content. The trade-off is that channel developers have less control over the way in which the channel is laid out for viewing. In my experience, this is generally an issue more for unsupported plugins :)
Darn, so you are saying, that the spare and scattered info about hooking into Plex is already out of date?
That's indeed a challenge here for 3.Party, and IMHO a blocker as well.
Anyway, I hear what you are saying, and is indeed so graceful about your interaction so far...You rock
So true, and I hear you here, I was however considering the framework not limited to just channels, but more as a fully blown framework, where you could hook in anywhere.
In my perfect world, I would hook into the tools menu, and add my own menu to launch my report
I agree that a more system-wide approach to the plugin framework would likely open up doors for all kinds of 3rd-party add-ons. For better or for worse, Plex has focused the framework on providing channel content. Pretty much anything else is "unsupported". That being said, the Plex ecosystem still allows room for lots of 3rd-party development with varying degrees of integration.
You're the man :wub:
Aw, shucks :rolleyes:
Darn, so you are saying, that the spare and scattered info about hooking into Plex is already out of date?
That's indeed a challenge here for 3.Party, and IMHO a blocker as well.
Anyway, I hear what you are saying, and is indeed so graceful about your interaction so far...You rock
/Tommy
The info in these forums goes back to the very early days of Plex and a lot has changed since then. There is bound to be a lot of outdated info on all sorts of topics. The channel framework has seen a lot of advancement over the last couple years and that tends to be a double-edged sword. It really has allowed for some very cool new features to be implemented (myPlex Queue, Recommendations, play-on client X) but documentation always seems to lag behind. I agree that the lack of complete/up-to-date documentation only adds to the learning curve. That's long been a topic of conversation among channel developers and several of us have started to compile notes in efforts to update/improve the available documentation at dev.plexapp.com/docs. Hopefully we can get some of that together and updated soon so that it's easier to maintain the docs going forward.