PDA

View Full Version : separating entries



JohnsonbI4
11-14-2006, 12:43 AM
For showing soundtrack/rare item/compilation/bootleg, etc. I use checkboxes which are on the first tab in album properties. But sometimes a CD is both single and rare item, or bootleg and compilation, or whatever. I tried to use this code for displaying that info:

<dax:if(compilation&#124;&#124;rare&#124;&#124;soundtrack&#124;&#124;single)>
<p><span class="proplabel">Special Info</span>:
<dax:if(rare)><span class="propvalue">Rare</span></dax:if>
<dax:if(compilation)><span class="propvalue">Compilation</span></dax:if>
<dax:if(soundtrack)><span class="propvalue">Soundtrack</span></dax:if>
<dax:if(single)><span class="propvalue">Single</span></dax:if></p>
</dax:if>

but it shows everything in one line - "rare compilation sountrack single". Is there a way to insert separator (like a /) if there are several boxes checked - like "rare/single" or "botleg/compilation"?

andrei_c
11-14-2006, 05:06 PM
Would this work?

<dax:if(compilation&#124;&#124;rare&#124;&#124;soundtrack&#124;&#124;single)>
<p><span class="proplabel">Special Info</span>:
<span class="propvalue">
<dax:if(rare)>
Rare
</dax:if>
<dax:if(compilation)>
<dax:if(rare)>/</dax:if>
Compilation
</dax:if>
<dax:if(soundtrack)>
<dax:if(rare&#124;&#124;compilation)>/</dax:if>
Soundtrack
</dax:if>
<dax:if(single)>
<dax:if(rare&#124;&#124;compilation&#124;&#124;soundtrack)>/</dax:if>
Single
</dax:if>
</span></p>
</dax:if>