Issue Bug Closed

#59533OptionSplit cObjNum inside FILES CO does not work

Jan Stoll 06/12/14, 20:06 updated 05/02/18, 16:18

Description

Please look at the following TS code below.

In my opinion the TS is correct. But this section does not work.

*cObjNum =  1 || 2*
1.current = 1
1.wrap = <h2>|</h2>
2.current = 1
2.wrap = <p>|</p>
It should output

first text

and

second text

. It does output,

first text

second text

though. So the option split does not seem to work. I tried this outside the FILES Content Object and it works without problems.
lib.headerSlider = FILES
lib.headerSlider {
  references {
    table = pages
    ##fieldName = media
    data = levelmedia:-1, slide
    treatIdAsReference = 1
  }

  sorting = sorting_foreign

  renderObj = COA
  renderObj {
    10 = TEXT
    10 {
        data = file:current:description
        split {
             token = -
             cObjNum =  1 || 2
             1.current = 1
             1.wrap = <h2>|</h2>
             2.current = 1
             2.wrap = <p>|</p>
        }
        wrap = <div class="text">|</div>
    }

    20 = IMAGE
    20 {
      file {
        import {
          data = file:current:publicUrl
        }
        width = 950c
        height = 300c
      }
      altText.data = file:current:description

    }
    wrap = <div class="slide">|</div>
  }

}

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.