Paging in channels

Hey.

Thanks a lot to Mike M for the documentation of the objects not documented on the normal dev portal.

 

I've found the NextPageObject, but i could really really use a PreviousPageObject for paging.

Not sure if it's there, even though i've looked at the python files in the Framework.bundle.

If it isn't, will there be one in the future, or is there another way of doing it ?

 

/HuX

AFAIK, there is no PreviousPageObject or plans to implement one. IMO, there isn't really a need. The behaviour of the NextPageObject varies depending on which client is being used. On iOS (and Android?) the NextPageObject provides an "infinite" scroll UI. Other clients tend to just display them as a menu item. In either case, the client should allow returning to the previous "page". Either by scrolling back up or using the "back" command (which varies from client to client).

Thanks Mike.

Are there then a "history -1" or a way to make a DirectoryObject not be a part of the navigation history ?

Example.

User clicks on a DO, this DO contains a DO for back paging(except for page 1), the videos and a NextPageObject.

When user hits the back DO, a DO is added with Previous Page, but when the user then hits esc (PHT... not sure what shortcut to use with remote / other clients) the user jump up one level in the tree.

(Hope this makes sense ;) )

/HuX

There are 2 different attributes for ObjectContainers which may help you depending on how you want to implement things:

no_history and replace_parent

Where is the documentation for this?

The server hosting the documentation is not available(since after the forums security breach).

You’ll find a cached version here(from wayback machine):
http://web.archive.org/web/20140925024438/http://dev.plexapp.com/docs/api/objectkit.html

Note that it doesn’t contain the NextPageObject discussed in this thread, missing documentation is covered in this thread:
https://forums.plex.tv/discussion/87324/missing-from-the-official-plugin-documentation#latest

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.