Closed (fixed)
Project:
Scheduler
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2019 at 08:16 UTC
Updated:
22 Feb 2022 at 09:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
berdirWe can't just translate the message or so, because our "message" is part of the node template that is always displayed and not a drupal_set_message() message.
Comment #3
jonathan1055 commentedHi mbovan,
Yes, sounds like a very reasonable request to have that option, and make it per content type.
Comment #4
jonathan1055 commentedHi mbovan and Berdir,
I have added this new option at the Content Type level for flexibilty. By default it will be on to replicate current behavior. I have also been meaning to add a message when scheduling to unpublish as this is missing. However, to avoid giving two messages if both dates are set they are combined into one. I have also wanted to get rid of the text "This post" (I think that must be a very old message) and I've now replaced it with the title.
If shown, the message will be either
{title} is scheduled to be published {date}{title} is scheduled to be unpublished {date} or {title} is scheduled to be published {date} and unpublished {date}The new option is in the 'Node Edit Page' fieldset
Comment #5
jonathan1055 commentedI have added test coverage for the new option. This patch will fail as I have purposely set the default to false in scheduler.settings.yml
Comment #7
jonathan1055 commentedHere's the patch with correct default value.
Comment #8
jonathan1055 commented@mbovan @Berdir
Any chance of your feedback? I added this option specifically for you. This is the last issue I am waiting on before I release Scheduler 8.x-1.2 so if you have a chance to look at this it would be good. Its been 5 days since I posted the patch, and I'd like to commit this and tag the next release by 28th May. Or if you don't have time just let me know.
Thanks
Comment #10
jonathan1055 commentedIt's a week since my patch, and no review, hence no complaints, so I have committed this.
Comment #12
arlingtonvoicellc commentedJust want to provide some feedback. When using the option with the Automatic Entity Label module, the message that comes out reads:
%AutoEntityLabel% is scheduled to be published Tuesday, March 1, 2022 - 11:06pm.Comment #13
jonathan1055 commentedHi arlingtonvoicellc,
I don't think the problem with you message was introduced by the changes in this issue. You can create a new issue and we can investigate.