T
T
Tatyana Anufrieva2020-02-07 01:16:05
MODX
Tatyana Anufrieva, 2020-02-07 01:16:05

How to fix url?

Modx revo tv
superselect. How to fix url?

tags-training?tag=%25D0%259C%25D0%25B0%25D0%25B3%25D0%25BD%25D0%25B8%25D1%2582%25D0%25BE%25D0%25B3%25D0%25BE%25D1%2580%25D1%2581%25D0%25BA


Call
<a class="tl-tag" href="{$link | unescape : "url"}">{$tag}</a>

For some reason unescape doesn't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tatyana Anufrieva, 2020-02-10
@kalisto74

{$_modx->runSnippet('tvssTags', [
             'id' => $_modx->resource.id,
             'tv' => 35, //ID tv тегов
             'pageId' => 54,  //ID страницы выборки по тегам
             'outputSeparator' => '',
             'tpl' => '@INLINE <li><a class="tl-tag" href="{$link | unescape : "url"}">{$tag}</a></li>',
          ])}

The reason was here{$link | unescape : "url"}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question