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
Comment #2
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedHello 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
Comment #3
gnorf CreditAttribution: gnorf commentedJonathan
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.
Comment #4
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedWe 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.
Comment #5
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commented#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.