We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37907
    • 5 Posts
    hello

    i'm trying to make tags for documents in modx. i'm using snippet TagLinks and with tv (type - checkbox with delimited list). tv has name "tagsd" and its value for example is:
    driver||manager||gardener


    so, i have page with "tag" alias and want to post document by the tag, i use ditto:
    [!Ditto? &parents=`0` &depth=`3` &tpl=`list` &tagData=`tagsd` &tagDelimiter=`, `!]


    the list of tags i get with TagLinks snippet
    [[tagLinks? &tv=`tagsd` &label=`<span>Professions:</span> ` &element=`div` &fap=`1` &path=`/professions/tag` &separator=`, ` ]]


    all documents are in "professions" folder. i have two documents with "dirver" tag, so i click for driver in the list of tags and modx takes me to the page i choose in TagLinks and its says that there is nothing notes by driver tag. but i really have two drivers...

    where did i make mistake?
    by the way sorry for my bad english [ed. note: chunek last edited this post 14 years, 10 months ago.]
      • 16278
      • 928 Posts
      I think you have to use just a comma as the delimiter for your delimited list, with no space. If you add a space after the comma, it will be trimmed. The parameter in the Ditto call then reads: &tagDelimiter=`,`. You can add the parameter &tagDisplayDelimiter=`, ` (with the space) if necessary to make Ditto output comma plus space as the delimiter.

      Нужно использовать просто запятую в виджете, система отрежет пробел. Ditto параметр выглядит так: &tagDelimiter=`,`. Можно прибавить параметр &tagDisplayDelimiter=`, `, чтобы Ditto показывало с пробелом, если требуется.
      :) KP
        • 37907
        • 5 Posts
        kp52

        thanks! it works. but i just noticed that tags works only if i'm in admin panel, if i'm not login into admin panel the tags doesn't work. how does it happen?

        спасибо, все сработало! но я сейчас только заметил, что механизм тегов на моем сайте работает только, если я просматриваю сайт залогинившись в админ-панель, если я не залогинился - вывод документов по тегу не работает! как это возможно-то?
          • 37907
          • 5 Posts
          oops, i got it - the document by the tag was unpublished.