We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4385
    • 372 Posts
    Does anyone want to adopt a snippet? I just created one for a test site and proof of concept. Not sure if we are going to use it and bits are hardcoded. I wasn't sure what was the best way way to implement customization, so it has lexicon, chunks, and default properties. I was hoping crowdsourcing would figure out the best way to setup. In my case it was easier to hardcode some of the settings. I really haven't used github and it would end up being neglected. It's pretty simple snippet, it's about 60 lines of code and took an hour to put together.

    Anyone interested in curating it?
      DropboxUploader -- Upload files to a Dropbox account.
      DIG -- Dynamic Image Generator
      gus -- Google URL Shortener
      makeQR -- Uses google chart api to make QR codes.
      MODxTweeter -- Update your twitter status on publish.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      What does it do?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 4385
        • 372 Posts
        Sorry, I was a bit vague. I wanted to make sure it had a good home first. smiley

        It is a snippet for displaying store hours. It was an idea for a mobile first site and I wanted to let someone know immediately at a glance if a particular store was open or closed. Each store hours vary and they days each one is open. I know I could display the hours, but I imagine a scenario where someone is driving and needs to see if we are open or closed.

        [[AreWeOpen?]]

        [[!AreWeOpen? &jsonHours=`[[+jsonHours]]` &openTpl=`tpl.AreWeOpen.open` &closedTpl=`tpl.AreWeOpen.closed`]]

          DropboxUploader -- Upload files to a Dropbox account.
          DIG -- Dynamic Image Generator
          gus -- Google URL Shortener
          makeQR -- Uses google chart api to make QR codes.
          MODxTweeter -- Update your twitter status on publish.
          • 4385
          • 372 Posts
          Any takers? Does anyone want to package it up?
            DropboxUploader -- Upload files to a Dropbox account.
            DIG -- Dynamic Image Generator
            gus -- Google URL Shortener
            makeQR -- Uses google chart api to make QR codes.
            MODxTweeter -- Update your twitter status on publish.