Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mass action: remove published until date #95

Open
mrbaseman opened this issue Nov 7, 2023 · 4 comments
Open

Mass action: remove published until date #95

mrbaseman opened this issue Nov 7, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@mrbaseman
Copy link
Collaborator

I have two NWI pages, one for the current postings, and another one as archive. I'm using time based publishing on the main page, and from time to time I move the older posts to the NWI section on the archive page. This works well using the mass action "move posts to another NWI section".
On the archive page, however, I have to remove the "published until" date, which is usually in the past for these entries that I select for moving. So it would be quite useful to clear the "published until" date in a mass action rather than clicking on each post, remove the date and save each one separately.
I guess it shouldn't be too complicated to implement. I have assigned myself, and maybe I find the time soon, and if not, this issue is at least a reminder.

@mrbaseman mrbaseman added the enhancement New feature or request label Nov 7, 2023
@mrbaseman mrbaseman self-assigned this Nov 7, 2023
@mrbaseman
Copy link
Collaborator Author

I have added another mass action: reset the publication date. The scenario would be that you prepare many posts and set their publication date far in the future. Maybe someone else has to clear them for publication and decides all these posts shall be published right now. He can check them and use the mass action to reset their publication date to "now".

@instantflorian
Copy link
Contributor

It works, but causes errors in the error log:
2024-09-26T14:43:25+00:00 [Warning] /modules/news_img/functions.inc.php:[642] from /modules/news_img/manage_posts.php:[80] mod_nwi_post_clear "Undefined variable $post_link"
for each affected post. (e.g. 4 posts to be changed => 4 times the error)

@mrbaseman
Copy link
Collaborator Author

Oh, I see. The access file stuff didn't work. These were copy&paste mistakes. I should have had a closer look at the code pieces that I have reused from other functions. I hope it's fixed now with 372414c

@instantflorian
Copy link
Contributor

confirmed, no more errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants