We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20349 ☆ A M B ☆
    • 453 Posts
    Ok, we have tplContainer, tplYear, tplMonth and tplItem parameters, but where can I change the template of the news itself in the archive display?

    For example.... the look of the reflect (archive) page itself looks fine, but when I click on the news itself it outputs only the text in document "content" tag. The problem is that I have TV (for avatars in news) before content tags and this is not displayed.

    Hope you understand what I’m trying 2 say smiley
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 18397
      • 3,250 Posts
      Could you provide an example page showing the problem?
        • 20349 ☆ A M B ☆
        • 453 Posts
        I’m afraid not because I’m still testing it....


        Hmm.... my call on archive page is
        [!Reflect?&dittoSnippetParameters=`startID:2` &dateFormat=`%d.%m.%y` &groupByYears=`1` &showItems=`1` &getDocuments=`1` &tplContainer=`tplContainer`!]


        and it outputs the archive correctly, but when I press on the archive news (item or whatever) itself, it inherits the default template (that I have on all pages) and there is only [*content*] tag present (which is replaced by the text from the news).
        To me seems something like:
        <div>[+content+] (or summary)</div>

        but it should look like:
        <div class="img_vijest"><img src="[+tvAvatar+]"/></div> [+summary+] </div>
          <div class="clear"></div>
        <div id="autor_vijesti">Napisao [+author+]</div>


        Bassicly, the question is can I have custom template for viewing archived news?
          BASE - Web Design Studio
          MODX Ambassador

          Website
          • 20349 ☆ A M B ☆
          • 453 Posts
          *bump*
            BASE - Web Design Studio
            MODX Ambassador

            Website