Hi

is there any known method for using the scheduler with files publishing?

Case, we have a system where one can add files (i.e. pdf documents etc) and select from a vocabulary what document type it is. The documents are then passed to a view on a given page with the selected category for view.

however, the system doesn't come with a scheduler. While it is possible to publish a file without a category, hence avoid it from being displayed, the file link is accessible and as such the document can be indexed.

What i am looking for is a function that allows use of [a] scheduler principle (i.e. change the state of a file/document from unpublished to published, just like with nodes.

Thanks

Comments

gnorf created an issue. See original summary.

jonathan1055’s picture

Title: possible to use for files publishing? » Is it possible to use Scheduler for files publishing?

Hello gnorf,
Could you tell me how exactly you are uploading and storing your files? Are you using a contrib module which handles this, or a custom module? I assume from your description that you are uploading files directly and they are items in their own right, they are not 'attached' to normal nodes.

I am not too hopeful that Scheduler can help you, but if I know a bit more about how your system is structured then I will try to help.

Jonathan

gnorf’s picture

Jonathan

Thank you for your response. Not entirely certain how it's done but either a contrib module or with entity or a mix. I don't think it's a custom job entirely.

Yes this is correct. files are uploaded as items in their own right, without being attached to a node.

No I thought it was less likely, but hoped that someone had ideas about how to handle file privacy, and change chmod/availability or file visibility by schedule. I've tried the node/content type (file field) variant but that is not enough to offer privacy/security.

jonathan1055’s picture

We are making great progress on #2096585: Support for non-node entities, e.g. Media, Commerce Products, Custom 3rd-party entities so it should be possible to create a plugin for Files. Actually, now that this issue is moving from 7.x to 8.x the "files" you are tallking about would be covered by the core Media module, which is our first plugin.

jonathan1055’s picture

Version: 8.x-1.x-dev » 2.0.0-alpha1
Status: Active » Fixed

#2096585: Support for non-node entities, e.g. Media, Commerce Products, Custom 3rd-party entities is now committed and fixed, and I have released Scheduler 2.0.0-alpha1

See #3249325: Plan for Scheduler 8.x-1.5 release for the issues currently being worked on, in preparation for the full 2.0.0. release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.