All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Grouping Best Practice

don.dikaio 27 Aug 2012 03:13 question, complete

I'm interested in finding out how other developers are grouping their variables. Please forgive me if I missed the post that outlines a best practice for grouping variables in Low Variables.

It's my assumption that this is totally a judgment or preference call but I'd also like to hear from the PRO's in the EE community that use Low Variables and how they group them e.g. header, footer, etc.

Thank you

Replies

  1. GDmac 27 Aug 2012 08:49

    There is no "best pratice", only what makes sense for daily usage to you or your users (customers).

    A website i made has various pages where a banner is displayed. So i grouped all banners together. Top-banner, various side-banners for the events and news page. For the homepage there's a group that has various elements for the homepage to show, like a text-field for introduction and a select-field for which top-items to show.

    The grouping is mostly for convenience of organizing things. I'ld love an extra feature where we could assign members or member-groups for access-control to variables in certain groups only.

  2. jeromecoupe 27 Aug 2012 10:26

    Depends what I use LV for in that project and if vars need to be accessed by users.

    Groups needed to be accessed by users will be named after what makes most sense to them, which is generally tied to the structure of the front-end site (banners, homepage announcements, sidebars, etc.)

    I tend to have a few groups reserved to dev. Their names can be a bit more esoteric (disable_preferences, analytics, date_formats, environments, etc.)

  3. Rob (Bluedreamer) 27 Aug 2012 14:55

    As GDmac said "best practice" really depends on the site, content and end users.

    Saying that I often group by site section or function. For instance I may have a group for each section of the site, eg Home, Events, News, Contact and in there various LV fields as required for each section.

    Sometimes if there are a lot of LV fields I may split these even further, eg
    Home - meta (page title & meta description)
    Home - intro (main heading, intro blurb, maybe even Matrix to run a slideshow)

  4. don.dikaio 2 Sep 2012 02:44

    Sweet stuff exactly what I needed to know thanks you guys.