Developer forum

Forum » CMS - Standard features » Item publisher filter - datefield before now

Item publisher filter - datefield before now

Hans Ravnsfjall
Reply

Hi

I have a datefield in an item type, that I want to use as a valid-to field

Is it not possible to set a filter for an itempublisher to only select items where datefield is before now?

If not, I hope this will come as a feature in the future.

regards Hans.


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Hans

You can use the @Code format - see this thread: http://developer.dynamicweb.com/forum.aspx?PID=48&ThreadID=39587

Votes for this answer: 1
 
Hans Ravnsfjall
Reply

Ok, thank you Nicolai.

Like Nuno, I also got confused that the datepicker pups up. Didn´t know i can paste in the input field. Will try it

 

thank you :)

 
Hans Ravnsfjall
Reply

I have another question

Is it also possible to set filter up using @Code() or similar, where you can test if either a valid to date is After today, or if the Date field is empy?

 

Someting like:

DateTo is after @Code.Date.Time.today

or

DateTo.IsNullOrEmpty

Can this be done in some way?

 

You must be logged in to post in the forum