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.

Custom Settings form?

August 13, 2009 5:49pm

Subscribe [2]
  • #1 / Aug 13, 2009 5:49pm

    Greg Stewart

    8 posts

    I am currently working on my first EE site for a client and I am in love with it.

    One thing I came across and that I can’t figure out the best way to do:
    How would I go about creating a custom global settings form for my client that features name-value pair type fields for my client to modify?

    It would manipulate certain aspects of the site that aren’t necessarily and weblog or pages type of content.

    Any suggestions?

    Thanks,
    Greg

  • #2 / Aug 14, 2009 12:42am

    Hoosteeno

    109 posts

    Hi Greg-

    One way to do this would be to create a blog called “Preferences” with all the custom fields you want, and then have one entry in the blog—the preferences entry.  Then you just need to grab that entry wherever you need its preferences, using the weblog:entries tag, the query module, or PHP.  The client would just edit the entry to change a pref.

    Alternatively, you could create an extension with settings, and then use PHP to grab those settings as necessary.  The client would just administer the extension to change a pref.

    There are probably other good ways to do it, too!

    Justin

  • #3 / Aug 19, 2009 12:23pm

    FameCast

    1 posts

    Justin,

    Thanks for the tip. That’s how I ended up doing it. It’s not perfect, but it works!

    Thanks again,
    Greg

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

ExpressionEngine News!

#eecms, #events, #releases