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.

Categories in SAEF - checkbox or radio possible?

July 22, 2011 11:45am

Subscribe [3]
  • #1 / Jul 22, 2011 11:45am

    meredithmarsh

    44 posts

    I am using a SAEF (EE1) to allow members of my site to create an entry. I have three category groups, and I’d like them to select one group to be “associated” with (and then select categories from the group they choose). Is that possible?

    or

    I have 1 category group with 3 parent categories… can I show just the parent categories?

    I am using category_menu - but is there a way the user can have a checkbox or radio select instead of a multiselect box?

  • #2 / Aug 30, 2011 5:24pm

    Brad Morse

    428 posts

  • #3 / Aug 30, 2011 5:36pm

    meredithmarsh

    44 posts

    Thanks Brad. That’s for EE2 and I’m still on ye olde ee 1 for this project.

    In re-reading my original post, I should clarify that I have 1 category group with 3 parent categories, each having a few child categories.

    So to rephrase:

    1) Is there a way to show only parent categories in the saef?

    2) Is there a way to let the user select the caregory they want as a checkbox, instead of within a multiselect box?

  • #4 / Sep 01, 2011 11:57am

    Elemento, Inc.

    57 posts

    <select name="field_id_#">
    <!-- you need to look at your mySQL database to see the # of the field -->
    {exp:weblog:categories parent_only="yes" show_empty="yes" style="linear" weblog="weblog_name"}
    <option value="{category_id}">{category_name}</option>
    {/exp:weblog:categories}
    
    </select>
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases