Problems, need help? Have a tip or advice? Post it here.
14 posts Page 2 of 2
Hi KK,

Going back to the Nested Repeatable, It seems that I have run into a similar situation where I'm creating a quiz and I want to tie in the multiple choice answers to the question, I suppose I can do it using relationships but Nested Repeatables provides a neater solution.

Is there any other way it can be done

Thank & Regards
Said
Hi KK,

Just more info, this is pretty much what I am trying to do.

Code: Select all
<cms:repeatable name='explanations' order='3'>
    <cms:editable
    name='question'
    label='Question'
    width='200'
    height='100'
      />
    <cms:repeatable name='answers' order='3'> 
       <cms:editable
          name='answer'
          label='Question'
          width='100'
          height='100'
      />

      <cms:editable
        name="correct_answer"
        label="Correct/Incorrect"
        desc="Select one from these"
        opt_values='Correct=correct | Incorrect=incorrect'
        type='radio'
          />
   </cms:repeatable>
</cms:repeatable>


Regards
Said
Hi Said,

The cleanest method currently possible would be to use a clonable template for the questions (each question becomes a page) and define answers as a repeatable region . So each question (page) can have multiple answers (repeatable).

Do you see any problem with this approach?
Hey KK,

Actually, yes that approach should work. Funny how we can overlook the simple solutions at times :)

Regards
Said
14 posts Page 2 of 2