ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

I need an idea for showing small text areas

October 15, 2011 5:35pm

Subscribe [4]
  • #1 / Oct 15, 2011 5:35pm

    Dan Storm

    70 posts

    Hi.

    I’m curious as to how to solve a relatively small problem.

    When trying to deliver a fresh design in a new EE solution to a client, I sometimes have the need for creating a small editable text for a slogan, statement or really short introduction to a website.

    I feel it seems like overkill to create a channel for some text that might be short and static - but the client might need to change the text at some point and then he shouldn’t need to contact me for doing so.

    Creating global variables also seems like a bad solution for my client, as the way these are named and used in the templates seems a bit ‘technical’ (to use his own words).

    How do you overcome this? I’m surely not the only one who have this ‘problem’.

  • #2 / Oct 16, 2011 10:57am

    John St-Amand

    865 posts

    Hi Dan - yeah, I face that same dilemma all the time - a seemingly static element that I’d still prefer the client to maintain the ability to edit, but without giving them access to the template area for variables, snippets, etc.  The dedicated channel thing is overkill, you’re right, but I haven’t managed to find a better way to do it.  There’s two approaches I’ve taken for it commonly.  The first is a miscellaneous channel with a small group of fields to store snippets of text.  Commonly I’ll use the title field only as a label for telling the entries apart and not actually make them part of the content, since typically such snippets of text would never have their own single-entry-view, in which case the url title doesn’t really play a role anyway.  The problem I have with that approach is sometimes i need more or fewer fields from one type of snippet of text to the next, so it’s not a great solution - if only because what I would want as “required” fields might change from one type of post to the next.  What I’ve been doing lately is creating a dedicated “site settings” channel.  Then using EE snippets to draw out and cache the elements of the settings that are needed in certain places.  It’s certainly not the most efficient way to do things from a database perspective but it has a couple of advantages from my point of view:

    1) It provides a very consistent editing experience for the client admins - nothing unfamiliar since it’s just another entry screen
    2) It keeps the client away from templates, variables and snippets.
    3) It allows me the same granular control, including required fields, field types, etc. that i get for everything else in EE.
    4) If you don’t focus on it being a single entry, you could actually implement it for A/B testing of certain content as well - my site settings channel often includes on/off triggers for certain things, but also default meta description and keywords for the site as fallback for my dynamic entry-specific meta data

    On the downside:

    - and entire channel for what is basically only likely to ever be a single post is certainly overkill and not very likely to be the most database-friendly way to handle it
    - treating settings as an entry doesn’t quite “feel” right either to me or to the client, since it’s content that likely will be entered the first time and then for the most part forgotten

    So until EE adds an entry-style “settings” area to which we can assigned multiple field types of our choosing but have a lightweight non-channel database impact, this has been my solution.

    Hope that helps.

  • #3 / Oct 16, 2011 6:41pm

    ralph.m

    225 posts

    This sounds like a job for Low Variables (http://devot-ee.com/add-ons/low-variables), which I believe was created for this purpose, though I haven’t used it yet. I know users can’t access templates, but I’m not sure how much of the CP they need access to to use it.

  • #4 / Oct 17, 2011 1:13pm

    Enviromed

    375 posts

    Missing Link addon

  • #5 / Oct 17, 2011 6:19pm

    Dan Storm

    70 posts

    @John St-Amand
    Thank you for your detailed post on how you solve this relatively simple problem. I believe implementing a solution similar to yours will be the answer for me at the moment.

    @ralph.m
    I see what the addon is trying to solve, but I was wishing for a solution that could be a part of a standard EE installation. It doesn’t seem to be the case at the moment. I’d might take a look at that add-on later.

    I hope more suggestions will come to this thread. It’s something others can use.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases