<![CDATA[ Best System for Entering Business Hours? - My Forums]]> https://forums.modx.com/thread/?thread=104756 <![CDATA[Best System for Entering Business Hours?]]> https://forums.modx.com/thread/104756/best-system-for-entering-business-hours#dis-post-563365 ceramicmonster Dec 25, 2018, 04:36 PM https://forums.modx.com/thread/104756/best-system-for-entering-business-hours#dis-post-563365 <![CDATA[Re: Best System for Entering Business Hours?]]> https://forums.modx.com/thread/104756/best-system-for-entering-business-hours#dis-post-563376
<time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>


If so then clientconfig should be fine, which is essentially just a system setting. You may need to create a snippet though to give the formatted date outputs you need but you can just tack that on to your setting ie:

[[++openingHours:formatSnippet]] 
]]>
lkfranklin Dec 26, 2018, 06:14 PM https://forums.modx.com/thread/104756/best-system-for-entering-business-hours#dis-post-563376
<![CDATA[Re: Best System for Entering Business Hours?]]> https://forums.modx.com/thread/104756/best-system-for-entering-business-hours#dis-post-563367
https://bobsguides.com/redirecting-users-on-login-ii.html

The values for $open and $close could come from System Setting(s), but it's faster to just put them in the code of the snippet. That also allows some automatic calculations to be made for weekends, holidays, etc.

I would not use TVs for this, BTW, since the value needs to be available throughout the site. TVs are intended for resource-specific data and are inefficient when used for anything else.
]]>
BobRay Dec 25, 2018, 09:13 PM https://forums.modx.com/thread/104756/best-system-for-entering-business-hours#dis-post-563367