We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Question

Restaurant Opening Times

I am working on a website for a restaurant, and they want to display on the site the opening times on a day-by-day basis i.e. on a Tuesday have "Today we are open from 10am to 10pm". I would like to have a perch region where they could input text for each day (just an input type="text"), and have the relevant text appear on the correct day. Is this possible?

I am a PHP novice so apologies if there is a simple answer!


Mike Harrison

Mike Harrison 37 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes. At a minimum they'd need to enter the day and then what you want to display for the day.

Then use perch_content_custom() to filter the region for the item that matches the current day.