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.

Can I do Multi Field Groups in one weblog with EE?

September 04, 2007 11:45pm

Subscribe [2]
  • #1 / Sep 04, 2007 11:45pm

    My name is url

    1 posts

    I’d like to use EE commercially, it looks great but I am struggling trying to understand weblogs and field groups.

    After much searching and user guiding I cannot see that I could set up a weblog using the more than one field group. Perhaps its just my limited understanding..

    Is it possible to do this:

    I’d like to have one weblog with multiple field groups so that I could have say many questions and use another (generic) fieldgroup dropdown (like yes | no) in the same weblog. This would then be repeated after the questions (of which there are many).

    Weblog
      Field Group 1: Q: is it blue
      Field Group a: A: Yes | No

      Field Group 2: Q: is it green
      Field Group a: A: Yes | No

      Field Group 3: Q: is it yellow
      Field Group a: A: Yes | No
    ——
     
    Is this possible?

    Many thanks in advance

  • #2 / Sep 05, 2007 11:06am

    allgood2

    427 posts

    If you are trying to do a survey, then I think the problem is how you are setting up the questions.  EE does only allow for a single field group to be assigned to a weblog. But that field group can have 1 or a couple hundred fields.  In your situation it seems as if you would want one field per question.  When creating a field in the field group, you have four primary components for that field: field_name, field_label, field_instructions, and field_type.  So my thoughts are you’d want something like:

    field_name: question01
    field_label: Is the Item Blue?
    field_instruction: Please select yes or no for the following series of questions.
    field_type: radio button
    
    field_name: question02
    field_label: Is the Item Yellow?
    field_instruction: Please select yes or no for the following series of questions.
    field_type: radio button
    
    etc.

    There are other components to complete, but the above four are the most important. Also if you are doing radio button fields, checkboxes, etc. You’ll want to check out Mark Hout’s extensions at http://docs.markhuot.com/. Radios and checkbox aren’t normally part of the backend control panel, but his extensions add them.  Of course if you are doing a stand alone data entry form, you can always format them yourself.

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

ExpressionEngine News!

#eecms, #events, #releases