We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17717
    • 433 Posts
    Thanks for the responses, here is what I have in my content:

    [[Ditto? &startID=`6` &summarize=`2` &total=`2` &depth=`1 &dateSource:date=`%a` &dateSource:month=`%b` &tpl=`ditto_articles`]]


    and here is what I have in my ditto template chunk:

    <div class="ditto_summaryPost">
    <a href="[~[+id+]~]">
    <h4 class"ditto_heading">[+title+]</h4>
    <div>[+summary+]</a></div>
    <p class="readmore">[+link+]</p>
    <div class="dottedline_x"></div>
    </div>
    
    <div class="ditto_date">
    <span class="myDayStyle">[+date:date=`%d`+]</span>
    <span class="myMonthStyle">[+date:date=`%b`+]</span>
    <span class="myYearStyle">[+date:date=`%Y`+]</span>
    </div>


    Really appreciate any help.

    Thanks
    Lee
      http://www.blend.uk.com | Web Design by Blend
      • 18397
      • 3,250 Posts
      Quote from: Mark at Nov 21, 2006, 08:38 PM

      [+date: should be whatever date field you want to use. Do not use date as it does not return a unix timestamp.

      If dateSource was createdon then you would do [+createdon:date=`%d`+].
        • 17717
        • 433 Posts
        Hi Mark,

        I’ll try that now smiley

        Thanks
        Lee
          http://www.blend.uk.com | Web Design by Blend
          • 17717
          • 433 Posts
          Mark, got it working, thanks SOOOOooo much.

          Btw. I would like to learn more about how to use Ditto, I know the very basics of PHP, is there anywhere I can learn how to use it, I notice there is documentation relating to the older version, will this be the same for the beta version? I have seen some of the great things that people on this forum have done using ditto and it has insprired me to learn how to use the little beast smiley

          Thank again.
          Lee
            http://www.blend.uk.com | Web Design by Blend
            • 18397
            • 3,250 Posts
            There is no additional documentation at the moment as I’m busy coding 1.1 Final but the 1.0.2 documentation contains 90% of the parameters. Those new in 1.1 are:


            limit : number of documents retrieved from DB (not total # matching criteria) now enforced, 0 indicates auto
            where : custom where statement for use in main SQL query, only works with document object values
            keywords : enable fetching of associated keywords for each document. Can be used as [+keywords+] or as a tagData source.
            archiveShowItems : show individual items in the archive
            archiveGroupByYears : group the archive by year as well as by month
            config : load config by filename located in the configs folder
            extenders : pipe deliminated (|) list of extenders to load that are by default in the extenders folder
            archiveDocumentID : ID of document that links in the archive will point to
            displayFullArchive : show all posts (to total) in archive instead of remaining posts

            added @FILE: and @CODE: bindings to &tpl paramaters.

            removeChunk : renamed version of commentsChunk
            dateFormatType : renamed to dateSource
            archiveDateType : renamed to archiveDateSource

            removed multilevel

            changed tplArchivePrevious to tplPaginatePrevious

            ADD randomize to documentation