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

    I use Ditto/TagLinks. Unfortunately, the page of the particular tag link e.g. www.abc.de/news?tags=hockey can’t be displayed or generated. The user is always forwarded to the index page. What can I do that all articles who have the same tag are displayed on one page?


    Ditto call:

    [[Ditto? &startID=`[*id*]` &tpl=`articles` &sortBy=`pub_date` &extenders=`summary,tagging` &truncLen=`420` &tplTrunc=`weiter` &tagData=`tags` &tagDelimiter=`,` &tagMode=`onlyTags` &tag=`sport` &paginate=`1` &summarize=`8` &paginateAlwaysShowLinks=`1` ]]


    &tpl:
    <h2><a href="[~[+id+]~]">[+longtitle+]</a></h2>
    <h3 class="tags">[[tagLinks? &id=`[+id+]` &tv=`tags` &separator=`, ` &fap=`1` &path=`news` &label=`Stichworte: ` &style=`dittoTags` &element=`span` ]]</h3>
    <div class="artikel">[+summary+] [+link+]</div>

    Thanks for your help!

    carlina
      • 7231
      • 4,205 Posts
      Are you using FAP (Friendly Alias Paths)? I am guessing that you are not using this feature. The URL if you were using FAP would be like abc.de/section/page?tag=xxx or according to your TagLinks setting it would be abc.de/news/newspage?tag=xxx. In most setups the FAP is turned off which would explain why you are getting the error page. Try setting &fap=`0` and removing the &path=`news` parameter.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 4628
        • 58 Posts
        I found the mistake: a few days ago, I changed the alias for the news section. I didn’t adjust the new alias in &tpl --> [[tagLinks? &path=`new-alias-for-news` ...] . rolleyes Now, everything is fine