4

For version control purposes, it's better to store snippets as files. What add-on or method would you recommend?

2
  • 2
    Try to avoid phrasing questions as "what would you recommend?" without including a specific problem, otherwise it leads to extended discussions. See the FAQ. – Adrian Macneil Nov 27 '12 at 22:23
  • Noted, thanks. Will be difficult to pick an answer here... – Richard Frank Nov 28 '12 at 5:03
11

We use Snippet Sync (http://devot-ee.com/add-ons/snippet-sync) almost exclusively now for our repeatable snippets ... we also use Low Variables (as mentioned by aelvan, but not so much for 'snippets' but more for the content that the users need to edit infrequently.

We tend to use snippets for sections of repeatable HTML/EE code (for example we may create an address snippet, that has the HTML tags to FORMAT the Low Variables CONTENT ... then we can use that snippet in the footer, on the contact page, etc).

Hope that this has helped.

2
  • 1
    Bought a Snippet Sync developer license, never looked back. Default install on every site. – Derek Hogue Nov 27 '12 at 22:15
  • 3
    If you are already using Low Vars it seem like a waste of money (even if only $8) as well as time to also be using snippet-sync though, to each his/her own. – Natetronn Nov 27 '12 at 22:16
6

Low Variables FTW.

It combines global variables, snippets and embedding templates all into one addon that also gives you flat files for snippets and global variables. You can also easily hide some variables from the client - great for code snippets that are developer only.

Finally low variables has many variable types including compatibility with wygwam, matrix, and other popular field types. This makes it very easy for clients to manage content that is too small for a full on channel - say telephone numbers, various one off paragraphs across the site, home page sliders etc...

You really can't go wrong with Low Variables.

5

I use SnippetsSync (http://devot-ee.com/add-ons/snippetssync) to accomplish this on any site that doesn't use Low Variables.

Note that this is not the same as the confusingly similarly-named Snippet Sync already mentioned above! This one is free, and is less configurable with no extension settings, but has always worked very well for what I wanted it to do.

3

I use Low Variables when the project calls for it otherwise Libraree is part of my base isntall http://devot-ee.com/add-ons/libraree

1

Low Variables. It does a lot more than just that of course, but the ability to save to files and to select if it's early parsed or not, is gold.

Not the answer you're looking for? Browse other questions tagged or ask your own question.