[TYPO3-english] Condition based on number of elements in page:media
Gonzalo Henriquez
ghenriquezv at gmail.com
Wed Sep 26 08:28:02 CEST 2012
Hi list!
I need a custom COA object to parse depending on the number of items
in the page:media field
It should be something like this
bla = COA
bla {
# do this in case no existing page:media elements
10 = TEXT (or any other)
10 {
value = sample_for_no_elements
if.isTrue.data = page:media
}
# do this in case of one element
20 = TEXT
20 {
value = sample_for_one_element
# this is what I would like to know:
if.????
}
# do this in case of more than one element
30 = TEXT
30 {
value = sample_for_more_than_one_element
# this is what I would like to know:
if.????
}
}
I guess that there must be a better way to do this. Any help is much
appreciated.
Thanks in advanced,
Gonzalo
More information about the TYPO3-english
mailing list