Search code examples
modxmodx-revolution

How to use URL output filter with multi-select TV?


I have multi-select TV, and I have set URL output filter. I receive code like

<a title="title1" href="title1">Индия</a>
<br>
<a title="title2" href="title2">Тибет</a>
<br>
<a title="title2" href="title3">Мустанг</a>

Everything is OK, but I don't need the br tag, how to discard it?


Solution

  • First way to do it - create your own output type based on url output type (core/model/modx/processors/element/tv/renders/web/output/url.class.php).

    Second way - use output modifier "replace":

    [[*my_urls_tv:replace=`<br>==`]]