We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17379
    • 26 Posts
    Hello,
    I have a chunk named "news" and it is my tpl for news generated by Ditto. The problem is that i want to generate date for myself (i need my cuntry language date) so Im using TV called ’date’ with ’unixtime’ Widget. Then in the chunk im trying to call my snippet but all of the code is printing on the screen. I think this may be a problem with the parsing sequence but i dont know how to workaround this.
    This is my chunk:
    <div class="news_short">
    					<div class="news_name"><a href="[+alias+].html"><h2>[+title+]</h2></a></div>
    					<div class="news_date">[!makeDate? &time=`[+date+]` !]</div>
                                            <div class="news_short_content">[+introtext+]</div>
                                            <div class="news_more"><a href="[+alias+]">więcej...</a></div>
    				</div>

    And this is a sample result:

    Sample title
    [!makeDate? &time=`1248101274` !]
    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since
    Thanks for help.
      • 14089
      • 56 Posts
      make sure that you aren’t using tinymce for the content. either turn it off or click the ’html’ button and paste it in that way. i think that messes up the way it gets parsed. i seem to remember having that same problem.
        for all things independent, check out http://www.indieophile.com
        • 26931
        • 2,314 Posts
        Hi,

        try calling it cached inside the tpl-chunk: [[makeDate? &time=`[+date+]` ]] and the Ditto-call uncached
          • 17379
          • 26 Posts
          sharkbait thanks smiley

          This discussion is closed to further replies. Keep calm and carry on.