Project

General

Profile

Actions

Feature #85032

closed

Expiration ànd a Publication date order

Added by Emile Blume over 6 years ago. Updated about 5 years ago.

Status:
Rejected
Priority:
Could have
Assignee:
-
Category:
Miscellaneous
Target version:
-
Start date:
2018-05-17
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

A client uses the expiration and publication date to show and hide two different kinds of specific content. However when record A needs to be hidden on a specific date, say July 1st, and reactivated on July 30th it does not work because the Publication date is set before the Expiration date. They need to manually re-enable the item.
It would be convenient if an Expiration and Publication date could be reversed.

Actions #1

Updated by Bernd Wilke over 6 years ago

That would result in a much more complicated evaluation for every record.

in the moment the evaluation is like

"AND starttime < currenttime AND (endtime = 0 OR currenttime < endtime)" 

your logic needs

"AND (   (starttime < currenttime AND (endtime = 0 OR currenttime < endtime)) 
      OR (endtime < starttime AND endtime != 0 AND (currenttime < endtime OR starttime < currenttime))
     )" 
Actions #2

Updated by Benni Mack about 5 years ago

  • Status changed from New to Rejected

Hey Emile,

thanks for your issue and sorry for the late feedback.

We discussed this issue and TYPO3 is explicitly configured for editors to not allow this, as this is 99.9% of their use cases, so we decided to keep it like this. I suggest you use Workspaces for this kind of publishing functionality (yes, it's getting better each week!). Otherwise, it should be fairly simple to XCLASS the EndTime and StartTime Restrictions and combine this into one Restriction doing the DB query as suggested.

If you feel we're missing out on something, let me know via benni at typo3 dot org and I can re-open this issue.

Actions

Also available in: Atom PDF