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

    Can someone shed any light with using the phx plugin which I’ve installed. Im wanting to format the unixtime to a readable format...

    My current Ditto call is as follows

    [[Ditto? &parents=`71` &depth=`1` &dateSource=`EventStartDate` &sortBy=`EventStartDate`]]

    What im not sure about is how I use the phx plugin to format my unixtime tv EventStartDate??

    Can someone help please....

    bS
      • 19164
      • 1,215 Posts
      Hi.

      1st - If you use Input Type - date for your TVs, you need to use unixtime widget in TVs options. Date strored in DB in string not timestamp format, Ditto dateSource must be unix timestamp.

      2nd - Using PHx in Ditto tpl - [+EventStartDate:date=`%d.%m.%Y`+] (look for strftime() php function).
        DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. | DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.

        Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.

        [PLUGIN] DirectResize - as Maxigallery but for single images :: Download :: [url=http://modxcms.com/forums/index.php/topic,21490]
        • 36592
        • 970 Posts
        You don’t have to use PHx plugin, if you want to format it in your Ditto template.
        Check the &dateFormat parameter, with which you can format [+date+] placeholder in your Ditto template.
        http://ditto.modxcms.com/files/snippet-ditto-php.html#dateFormat
          • 7231
          • 4,205 Posts
          You don’t have to use PHx plugin, if you want to format it in your Ditto template.
          Also PHx is available to use within Ditto tpl by default, so you would not need to install the plugin to use it in this way. wink
            [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't know what it is.
            Do you, Mr. Jones? - [bob dylan]