I'm not a developer by any means and I'm having trouble trying to get what I want achieved.

Basically I have a date field on a node and I am using panels to display the output of the node. I want to set a visibility rule on one of the panes that will ONLY display when the date set in the date field is reached. I know that I probably have to use the context argument but I don't know the correct php code to write in the visibility rule.

Any help?

Comments

Letharion’s picture

Status: Active » Postponed (maintainer needs more info)

I don't immediately know, but is this really the way to go about the problem? I can see several other ways that seem better.
1) A view that filters on date
2) Using the scheduler module to trigger publishing at a specific time.
3) Using rules to achieve 2), but with more complex requirements.

Letharion’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
jelo’s picture

Issue summary: View changes
Status: Closed (cannot reproduce) » Active

I have the same requirement. Use case is to show a webform on a node after a certain date, in my case an event registration form that should only be shown after the registration formally opens and closes on the day of the event. The dates are on the node and I am trying to hide the webform by comparing the dates.

I could use a view to determine if an particular event should be shown, but how do I take the result of this view to be piped into the visibility rules? I am trying to avoid using php code evaluation in the visibility settings which would be easy. Any guidance on how to achieve this would be very much appreciated.

siano’s picture

I too would like a similar functionality in the panel. I'm working on a constant update of shows where I'd like the show dates to appear in range then disappear once the dates are completed.