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.

Using data from a custom field.

May 09, 2011 4:00pm

Subscribe [3]
  • #1 / May 09, 2011 4:00pm

    iPixel

    64 posts

    I’m relatively new to EE1.x and find myself needing to generate a <select> dropdown.
    I wanted to know if it’s possible and how it’s possible to do so.

    Under Admin > Section Administration >> Custom Section Fields >> Field Group >>> Field (dropdown)

    the field’s name is locations. It contains dropdown info such as California, Utah, Washington etc…

    is there a way to do something like

    {exp:field_groups:custom_fields field_name="locations"}
    <option>{location}</option>
    {/exp:field_groups:custom_fields}

    The idea is to avoid using the ee->$db->query();

    Thanks for the help!

  • #2 / May 09, 2011 5:17pm

    Mark Bowen

    12637 posts

    I just answered your same question here in this post.

    There is no way around using a query to get what you want though, be it using the query tag or some PHP or a plugin as there is no built in method of doing so.

    Best wishes,

    Mark

  • #3 / May 09, 2011 5:18pm

    Mark Bowen

    12637 posts

    As a note your other post is in the wrong place if you are using 1.x as you have posted it in the 2.x forums.

  • #4 / May 10, 2011 4:16am

    John Henry Donovan

    12339 posts

    Closing this one out and moved your other thread to Community help forum

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

ExpressionEngine News!

#eecms, #events, #releases