Developer forum

Forum » Feature requests » Environment variables in Smart Search

Environment variables in Smart Search

Lars Sørensen
Reply

It would be nice to be able to environment variables such as session, application, current date and such as criteria when setting up Smart Search filters.

Also, the ability to nest filters would be great.

BR.

Lars

 

 

 

 

 

 


Replies

 
Asger Munkholm Højfeldt
Reply

Hi Lars,

From Dynamicweb 8.4 you can use @Code() in SmartSearches like @Code(System.DateTie.Now.AddDays(1) will give you tomorrow. We'll provide some more examples shortly after release. 

//Asger

 
Lars Sørensen
Reply

That sure will rock:)

 
Lars Sørensen
Reply

Hi Asger,

I see the new button now. Are you able to provide some examples?

Btw, I seem to be experiencing remarcable performance improvements in both frontend and backend. I like that:)

BR.

Lars

 
Nicolai Høeg Pedersen
Reply

Hi Lars

It is the same concept as described here:

Check: http://manual.dynamicweb-cms.com/Dynamicweb-On-line-Manual/Items/Item-fields.aspx under "Default values". Here is examples and references to API dokumentation.

 

Nicolai

 
Lars Sørensen
Reply

Fantastic, I'll take a look at it:)