Developer forum

Forum » Feature requests » Dynamic date in Item Publisher

Dynamic date in Item Publisher

Anders Ebdrup
Reply

Hi Dw,

 

I am missing the option to set a dynamic date in the filter for the Item Publisher in the administration and have a dynamic date as a query parameter.

I know it can be done in razor, but a standard implementation would be nice for the end-user.

 

Best regards, Anders


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Anders

Have you tried using expressions as values?

@Code(DateTime.Today.AddMonths(-1))
@Code(3) - the number 3 
@Code("cykel") - the string "cykel"
@Request("GroupID") 

 
Anders Ebdrup
Reply

Hi Nicolai,

 

Please see attached screen dump. Should the value (@Code(DateTime.Today)) be entered in the date field, when I want the publisher to display items later than today?

And how to use this as a query parameter?

 

Best regards, Anders

Udklip.PNG
 
Nicolai Høeg Pedersen
Reply

Ah, get your point!

I'll just talk to Mikkel and get back!

 
Anders Ebdrup
Reply

Hi Nicolai,

 

What did Mikkel say about this? :-)

 

Best regards, Anders