Sort by publish date, even if publish date is tomorrow or 2 years ago
I'm trying to make this as intuitive for my customer as possible. They already have many news articles they need moved to this new Umbraco 7 site. I want the following to happen:
If they make a news article and set the "Publish At" date to tomorrow, it will not show on the page until tomorrow.
If they do not set a "Publish At" date, it should look at the published date (you would not fill out the "Publish At" date if you want it published now)
If they edit an old article, it should not affect the sorting at all (meaning UpdateDate shouldn't work)
If there are n articles all released today, and someone publishes a news article with "Publish At" set to yesterday, it will put the news article before the 3 new ones
Is something like this possible, without creating an additional property? That's, in my opinion, just going to confuse the person.
From your description I cannot think of a way of achieving what you are after without having an additional property.
From my understanding of what you have described I truly think a custom property for a date is the easiest option.
Personally I don't think having an extra property will provide confusion as it is keeping the functionality simple and not relying on some custom code to something funky. Overtime the funky code may get forgotten about and result in unexpected issues.
Therefore having a custom property, in my opinion, is the most safe way.
I couldn't think of another way to do it, so I went with a new property in a new tab. It might be confusing to the user, as there are two properties that are basically named the same thing. It would be cool if I could just sort by "Publish At" date. If there is no "Publish At" date, it would check the actual date it was published instead. But for some reason, you can't pull out those values with Umbraco that easily.
Sort by publish date, even if publish date is tomorrow or 2 years ago
I'm trying to make this as intuitive for my customer as possible. They already have many news articles they need moved to this new Umbraco 7 site. I want the following to happen:
If they make a news article and set the "Publish At" date to tomorrow, it will not show on the page until tomorrow.
If they do not set a "Publish At" date, it should look at the published date (you would not fill out the "Publish At" date if you want it published now)
If they edit an old article, it should not affect the sorting at all (meaning UpdateDate shouldn't work)
If there are n articles all released today, and someone publishes a news article with "Publish At" set to yesterday, it will put the news article before the 3 new ones
Is something like this possible, without creating an additional property? That's, in my opinion, just going to confuse the person.
Hi Morten
From your description I cannot think of a way of achieving what you are after without having an additional property.
From my understanding of what you have described I truly think a custom property for a date is the easiest option.
Personally I don't think having an extra property will provide confusion as it is keeping the functionality simple and not relying on some custom code to something funky. Overtime the funky code may get forgotten about and result in unexpected issues.
Therefore having a custom property, in my opinion, is the most safe way.
Cheers, Nigel
Hi
I couldn't think of another way to do it, so I went with a new property in a new tab. It might be confusing to the user, as there are two properties that are basically named the same thing. It would be cool if I could just sort by "Publish At" date. If there is no "Publish At" date, it would check the actual date it was published instead. But for some reason, you can't pull out those values with Umbraco that easily.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.