Name
advanced scheduling field (asf)
Description
This field allows content editors to do advanced un/publishing.
Basics
- schedule publication and depublication (most simple behavior)
- schedule (cron like) daily publication from/to a specific time
- schedule weekly de/publication of a node
- schedule monthly de/publication of a node
- schedule daily publication of a node on only weekdays 1,3,5
- schedule daily publication of a node on only days of month 1,2,3,4
- schedule daily publication of a node , on weekdays until a iteration count has been reached
- schedule daily publication of a node , on mondays until a date is reached
At the moment the module supports only one field of advanced scheduling, but this can easily be expanded.
Advanced Possibilities
The possibilities are mind blowing (because multiple fields can exists of this field):
- schedule on next 10 mondays also on tuesdays until date x and on wednesday from time x to time y
- ...
Repo
Git: http://drupalcode.org/sandbox/wouters_frederik/1689696.git
project page : http://drupal.org/sandbox/wouters_frederik/1689696
Drupal version
Drupal 7
Status
I have the need for this for a client, and development is not finished. More development and testing will happen on this module.
It is better when this testing and dev is contributed.
Comments
Comment #1
wouters_f commentedIt should be a task...in review...
Comment #2
sanchi.girotra commented1. Add direct link to your git repository (git clone ...) in the Issue Summary. Refer:http://drupal.org/node/1011698.
2.There is still a master branch and to remove that can use following commands:
git branch -d master (make sure active branch(git branch) is not master then run)
git push origin :master
Manual Review:
1File names should start with module name.
2.install file have empty hooks like asf_install(), its not necessary to have a .install file in a module refer http://drupal.org/node/51220.
Comment #3
wouters_f commentedI have
I don't understand what you mean by
The module's name is advanced scheduling field, but (a la display suite -> ds) asf seems much more usable in the code.
*EDIT
Can you please explain what I'm doing wrong?I understood and created a module asf, so the name of the files is consistent with the repo.Comment #3.0
wouters_f commentedadded asf moduel in stead of module with wrong name.
Comment #4
wouters_f commentedadded module asf http://drupal.org/sandbox/wouters_frederik/1689696
Comment #4.0
wouters_f commentedadded link to code
Comment #5
vaibhavjainJust to update you, your links are still incorrect.
Please edit your project application and provide correct links
Project page - http://drupal.org/sandbox/wouters_frederik/1679534
GIT - http://git.drupal.org/sandbox/wouters_frederik/1679534.git
Comment #5.0
wouters_f commentedadded git clone command to summary
Comment #6
wouters_f commentedThe links you add in your reply are not correct, and are not in the project application, where did you find those?
The last one even renders me a page not found error.
It should be
Git: http://drupalcode.org/sandbox/wouters_frederik/1689696.git
project page : http://drupal.org/sandbox/wouters_frederik/1689696
Those are both in the project application if I can see correctly.
*edit typo
Comment #7
vaibhavjain@drupal_sensei
The last link in my previous reply will definitely show you a page not found. It is path to your GIT Repo.
While cloning your code, we use this path.
Try looking at your project page when you are not logged into drupal, this is the path which we use.
For project page link, you have updated the project page link, so that is an old one.
Comment #8
wouters_f commentedI'm sorry.
What is wrong now, in IRC they tell me it's as it should be.
Don't know what to do more.
Comment #9
jrsinclair commentedAutomated review:
There are a few (very minor) issues being found by code sniffer: http://ventral.org/pareview/httpgitdrupalorgsandboxwoutersfrederik168969...
Manual review
First of all, looks like this could be a very handy module.
asf_schema()andasf_field_schema()should be in a file calledasf.installThose last two items are minor, but the first does need changing.
Comment #10
wouters_f commentedThanks for the review!
You are probably right.
I think I did it that way because the selection function returns objects and I thought it would be easy to change a property and save them like that without object=>array.
an example of this:
Comment #11
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.
Comment #12
wouters_f commentedre-opened because I still am working on it.
Il just did a major rewrite of the UI.
And added some functionality (inheritanbce of publication schema from other nodes).
Comment #13
peterx commentedDocumentation: I looked at your sandbox page for documentation about how this module fits into things I do on existing sites. The image shows a lot of useful information and is an excellent starting point for documentation.
The iteration option is not obvious and could be mentioned to give us an idea of the range of options. Why do you say Loop until?
Cron is not mentioned. I presume cron has to run daily to start your process for a publication by date. What happens for publication by time? If I want to publish a special offer from 4:00 pm to 6:00 pm, do I have to set cron to every hour? Should I use something like Elysia cron?
The last bit is the inheritance. How exactly will that work? An example would be nice when you implement that feature. A common situation is the publication of an issue of a magazine. When the issue is published, all the articles are published. I think, from reading the sandbox page, I would connect the articles to the issue and they would inherit the same publication schedule.
The module looks like a useful step forward for people publishing notes about events where every article has a different timeframe of usefulness.
Comment #14
wouters_f commentedGood to see you are interested in the module.
There are following modes
Your question is about the iteration,
Iteration
The iteration option does the following:
Iterate publication of this node every day from H:m to H:m.
You need the following fields for this:
This functionality should work fine in the current sandbox version.
Cron
There is a implementation of the hook_cronapi (elysia). I run this elysia cron every minute as my client needs publication on the minute of nodes (and its related nodes). You may do this as you which.
This is already tested and works nice.
Inheritance
An example of how I will be using in this module. We have actions that will be published at a specific time and then depublished after a specific time (on the minute).
Related banners and other promo content types will have to do accordingly. They will inherit the publication schema of the parent node.
This can be set up by using the option interit / and there entering the title in the entityreference field.
I first created a textfield for the node id, but this is not really user friendly.
This input textfield needs a little work still, as the entity reference field does not implement hook_element_info. Kenneth has made a patch for this (http://drupal.org/node/1678412).
More feedback is more than welcome!
Please give the module a try.
Comment #15
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #15.0
PA robot commentededit better readability
Comment #16
avpaderno