We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5854
    • 39 Posts
    Hello Everybody!

    Website/Page in question: http://www.fiery-legends.de/index.php?id=48 / http://www.fiery-legends.de/index.php?id=60

    I have two templates, one with a summary and then the actual "news".

    As you can see, 48 is the page with the multiple "news’" whilst 60 is the single news.

    Multiple template:

    <div id="nmultipletemplate">
    <div id="ntitlebg"><h5><a class="ntitle" href="[~[+id+]~]">[+pagetitle+]</a></h5>
    <span class="margin5l"><span class="grtext">Posted by <span class="wtext">[+author+]</span> on [+date+]</span></span></div>
    <div id="ncontent">
    <span class="justify"><span class="wtext">[+summary+]</span></span>
    <div id="nrm"><span class="margin5r"><span class="wtext"><span class="bold">([[Jot?action=`count-comments` &docid=`[+id+]`]] comments)  </span></span><a class="nreadmore" href="[+url+]">-READ MORE</a></span></div>
    </div>
    </div>


    Single template:

    <div id="nmultipletemplate">
    <div id="ntitlebg"><h5><a class="ntitle" href="[~[*id*]~]">[*pagetitle*]</a></h5>
    <span class="margin5l"><span class="grtext">Posted by <span class="wtext">[+author+]</span> on [+date+]</span></span></div>
    <div id="ncontent">
    <span class="justify"><span class="wtext">[*#content*]</span></span>
    <div id="nrm"><span class="margin5r"><span class="wtext"><span class="bold">([[Jot?&action=`count-comments`]] comments)  </span></span></span></div>
    <div id="ncomments">{{comments}}</div>
    </div>
    </div>


    The thing is, there is a ditto call in the multiple one which enables me to call for [+date+] and [+author+] whilst in the single one, those calls do not work (because there ist obviously no Ditto)..

    How can I get around this?

    Best Regards,

    AR/Counterfire
      • 16278
      • 928 Posts
      Try AuthorTimestamp in the Extras: http://modxcms.com/extras/package/25
      smiley KP
        • 5854
        • 39 Posts
        I have installed the snippet AuthorTimestamp,

        <div id="nmultipletemplate">
        <div id="ntitlebg"><h5><a class="ntitle" href="[~[*id*]~]">[*pagetitle*]</a></h5>
        <span class="margin5l"><span class="grtext">Posted by <span class="wtext">[+author+]</span> on [+date+]</span></span></div>
        <div id="ncontent">
        <span class="justify"><span class="wtext">[*#content*]</span></span>
        <div id="nrm"><span class="margin5r"><span class="wtext"><span class="bold">([[Jot?&action=`count-comments`]] comments)  </span></span></span></div>
        <div id="ncomments">{{comments}}</div>
        </div>
        </div>


        How do I introduce the code into my template now? The instructions are kind of crappy unclear for someone "new" to the snippet :/

        If someone has an example, I would be greatly thankful smiley

        Instructions

        AuthorTime? &dateFormat=`%d %B %Y - %H:%M` &usedDate=`pub_date` &tpl=`PostÈ par <strong>+Author+</strong> le +Date+`

          • 26931
          • 2,314 Posts
          The instructions are totally crappy for someone "new" to the snippet
          actually I would never use the term "crappy" for something totally free
            • 5854
            • 39 Posts
            Quote from: sharkbait at May 03, 2010, 07:52 AM

            The instructions are totally crappy for someone "new" to the snippet
            actually I would never use the term "crappy" for something totally free

            They were unclear. I would have liked to see a example.

            Free or not free, if the people who have not much experience with MODX attempt to use it and have no idea how, then what is the use?

            Though you are right, fixed’
              • 5854
              • 39 Posts
              Push?

              Anyone got any ideas please smiley? Or a working example?
                • 5854
                • 39 Posts
                Problem Solved.

                I just had to use the [[AuthorTime]] call without any parameters