Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 xThreads Display Item Format Not Parsing {VALUE|htmlspecialchars} for filmgenre Field
RateU Offline
Administrator
*******
Posts: 2,351
Joined: Mar 2010
Post: #3
RE: xThreads Display Item Format Not Parsing {VALUE|htmlspecialchars} for filmgenre Field
I'm posting this here in case anyone needs it.

The relationship between Display Format and Display Item Format is that the Display Item Format will be displayed repeatedly, depending on the number of items, and then displayed by the Display Format.

For example:
If we have 4 items, and we enter A in the Display Item Format, it will essentially be displayed as AAAA. Note that whatever we enter in the Item Display Format will be displayed repeatedly for the number of items we specify.
Then, if we enter the Display Format with:

Code:
Display {VALUE} Format

then the result we get is:

Code:
Display AAAA Format

The {VALUE} in the Display Format is whatever the Display Item Format returns after the loop.


In the case above, the Display Format will display:

HTML Code
<div class="info-value"><span class="genre-tag">Drama</span></div>
<div class="info-value"><span class="genre-tag">Romance</span></div>
<div class="info-value"><span class="genre-tag">Supernatural</span></div>
<div class="info-value"><span class="genre-tag">Paranoid</span></div>


This div creates a new line after each genre, because by default, div is a block element. To get the desired result in the second screenshot, either change the info-value class or change the Display Item Format with:

HTML Code
<span class="genre-tag">{VALUE}</span>

and change the Display Format with:

HTML Code
<div class="info-value">{VALUE}</div>

which will output the final result:

HTML Code
1
2
3
4
5
6
<div class="info-value">
	<span class="genre-tag">Drama</span>
	<span class="genre-tag">Romance</span>
	<span class="genre-tag">Supernatural</span>
	<span class="genre-tag">Paranoid</span>
</div>


02-06-2026 04:40 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: xThreads Display Item Format Not Parsing {VALUE|htmlspecialchars} for filmgenre Field - RateU - 02-06-2026 04:40 PM

 Standard Tools
Forum Jump: