liveblog icon indicating copy to clipboard operation
liveblog copied to clipboard

Add support for other post types

Open philipjohn opened this issue 10 years ago • 5 comments

Allow pages, and other post types to be used as Liveblogs.

philipjohn avatar Dec 10 '15 17:12 philipjohn

Hi @philipjohn! I was wondering if there are any strategies in place to add this feature. Adding support for other built-in post types looks straightforward so I wanted to clarify a couple of doubts.

When adding support for other post types, should all the post types be supported by default or should there be a centralized settings page that lists all the post types available(including custom post types) and allows the user to choose which post types to support.

shantanu2704 avatar Jan 17 '18 07:01 shantanu2704

Hey @shantanu2704 I was actually thinking of picking this one up today.

I think that because there is no general Admin UI yet, there is no point of adding a menu item with just a single option inside ( "Support for Page post type: Yes/No" ). On top of that - when a post type is supported it'll display the Liveblog section where Liveblog has to be enabled before it will work.

As a solution, I'm thinking of just adding pages as a supported post type and applying a filter, so that anyone who wants to further extend the plugin can just add a filter to add or remove support for certain post types.

pyronaur avatar Jan 17 '18 07:01 pyronaur

Hey @justnorris

I have already made the necessary changes to add support for pages and attachments. There isn't really much to it. Adding a filter to disable certain post types, like you are suggesting, was something I was thinking of as well. But since I am new here, I thought I would see if someone has a better idea.

shantanu2704 avatar Jan 17 '18 10:01 shantanu2704

Oh, that's great. In that case submit a PR so someone can look it over.

I'm not sure though about having a Liveblog for attachments. Maybe just pages and the filter? If someone needs a Liveblog for Attachments then they could use the filter.

pyronaur avatar Jan 17 '18 10:01 pyronaur

Hey @justnorris!

I have submitted a PR( #342 ), but two tests are failing and I am not able to figure out how. If you could maybe look into it, that would be really helpful. Thanks!

shantanu2704 avatar Jan 18 '18 09:01 shantanu2704