Hello,

I am trying to create "variants" with Panels depending on a specific context, based on the node creation date. I have found in Panelizer (Structure->Content types->etc.) a list of built-in contexts including "%node:created", what is exactly the context I need. But I cannot find it when trying to create a variant... How can I manage this ?

Thanks for your answers.

Comments

nevets’s picture

"%node:created" is a value exposed by the node context, it is not a context it's self.

I also do not see a standard selection rule or Context for acting on a date field.

You can though enable the PHP code module add a selection rule using PHP code that uses the node context (I am assuming it available) to return TRUE or FALSE based on the created data.

An alternative approach would be to write a custom panel selection rule.