We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2396
    • 101 Posts
    Hi,

    I have an Auto-Tag TV, called 'cityTag' which I am trying to use to place the output into a div to use as a class, e.g. a document is tagged as 'London' and 'Paris', and I am using a getResources template as below

    <div class="[[+cityTag]]">...
    ...</div>


    to try to get the output below

    <div class="London Paris">...
    ...</div>


    but setting the output options of the tv to 'Delimiter' and using a space or dash does nothing, so the tv is output including a comma as below, which is unusable

    <div class="London,Paris">...
    ...</div>


    I CAN however use a multi-select listbox with a delimiter of ' ' and it works no problem at all, but I would prefer to use Auto-tag so my client can add cities easily.

    So SHOULD the Delimiter work for Auto-Tag? Or is there a way to modify the output so I can still use Auto-Tag? I've tried using tagLister etc but it's messier than using the straight placeholder and I still can't get it to work.

    This question has been answered by donquicky. See the first response.

    [ed. note: atype last edited this post 7 years, 2 months ago.]
    • discuss.answer
      • 37105
      • 194 Posts
      Hi atype,

      This can be done by using Output Filters on the output of your TV call.

      [[+cityTag:replace=`,== `]]

      This code gets the results of your TV and replaces the , by a space.
        Codeplaza Webdesign: for professional websites at low cost
        • 2396
        • 101 Posts
        Hey thanks for that, too simple, it's working well now.