I am trying to show a visual maker to between playlist items so that visually it would be like this:

playlist section1
--item1
--item2

divider

playlist section2
--item1
--item2

playlist section3
--item1
--item2

I am doing this using file fields with the different sections as different field groups. On the output for flowplayer the 1st section is rendered as expected but the second section show as '${artist}. instead of the playlist items. If I assign tow separate node to quicktabs I still have the issue on the second tab onwards. If i change it to jwplayer it shows all the items correctly but cant use this as i need to have the dividion between the sections.

Has anyone else come across this iaaue and how can I fix it?

This is what is shown on the contemaplate file if it make a difference

words_female

foreach ((array)$node->field_words_female_voice as $item) {
print $item['view']

}

qca_female

foreach ((array)$node->field_qca_female_voice as $item) {
print $item['view']

}

words_male

foreach ((array)$node->field_words_male_voice as $item) {
print $item['view']

}

Name fileld

foreach ((array)$node->field_name as $item) {
print $item['view']

}

qca_male

print $node->field_qca_male_voice[0]['view']

QCA_text

foreach ((array)$node->field_qca_text as $item) {
print $item['view']

}

Comments

salsaturation’s picture

sorry forgot to enclose the code

<div class="field field-type-filefield field-field-words-female-voice">
  <h3 class="field-label">words_female</h3>
  <div class="field-items">
    <?php foreach ((array)$node->field_words_female_voice as $item) { ?>
      <div class="field-item"><?php print $item['view'] ?></div>
    <?php } ?>
  
<div class="field field-type-filefield field-field-qca-female-voice">
  <h3 class="field-label">qca_female</h3>
  <div class="field-items">
    <?php foreach ((array)$node->field_qca_female_voice as $item) { ?>
      <div class="field-item"><?php print $item['view'] ?></div>
    <?php } ?>
  </div>
</div>
</div>
</div>

<div class="field field-type-filefield field-field-words-male-voice">
  <h3 class="field-label">words_male</h3>
  <div class="field-items">
    <?php foreach ((array)$node->field_words_male_voice as $item) { ?>
      <div class="field-item"><?php print $item['view'] ?></div>
    <?php } ?>
  </div>
</div>

<div class="field field-type-text field-field-name">
  <h3 class="field-label">Name fileld</h3>
  <div class="field-items">
    <?php foreach ((array)$node->field_name as $item) { ?>
      <div class="field-item"><?php print $item['view'] ?></div>
    <?php } ?>
  </div>
</div>

<div class="field field-type-filefield field-field-qca-male-voice">
  <h3 class="field-label">qca_male</h3>
  <div class="field-items">
      <div class="field-item"><?php print $node->field_qca_male_voice[0]['view'] ?></div>
  </div>
</div>

<div class="field field-type-text field-field-qca-text">
  <h3 class="field-label">QCA_text</h3>
  <div class="field-items">
    <?php foreach ((array)$node->field_qca_text as $item) { ?>
      <div class="field-item"><?php print $item['view'] ?></div>
    <?php } ?>
  </div>
</div>