Results 1 to 2 of 2

Thread: separating entries

  1. #1
    Join Date
    Sep 2002
    Location
    Russia, Samara
    Posts
    64

    Default separating entries

    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;sou ndtrack&#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"?

  2. #2
    Join Date
    Feb 2009
    Posts
    1,549

    Default Re: separating entries

    Would this work?

    <dax:if(compilation&#124;&#124;rare&#124;&#124;sou ndtrack&#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;sou ndtrack)>/</dax:if>
    Single
    </dax:if>
    </span></p>
    </dax:if>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •