Howdy! Trying to finish up my work on this jobs listings website, but having a problem displaying the date of a document on it’s individual page. I’ve got it working on both the homepage and the main job listings pages using the following chunks as templates of my Ditto call:
<div class="hotjob [+tags+]">
<div class="job_date">[+createdon:date=`%b<strong>%d</strong>`+]
</div>
<h3 class="job_title"><a href="[~[+id+]~]">[+title+]</a></h3>
[[tagLinks? &id=`[+id+]` &tv=`tags` &separator=`, ` &fap=`1` &path=`categories` &label=`Tags: ` &style=`job_tags`]]
<div class="job_info">
<p>[+introtext+] [+link+]
<a class="more_link" href="[~[+id+]~]">View this job</a>
</p>
</div>
<div class="cleared"></div>
</div>
But, for each individual listing, the document uses the following page template:
{{head}}
<body id="job">
<div id="container">
<div id="header_wrap">
<div id="header_phone">Call us today: <span></span></div>
<div id="header">
<h1><span>acme Jobs</span></h1>
{{navigation}}
</div>
</div>
<div id="content_wrap">
<div id="content">
<div class="job_post [*tags*]">
<div class="job_date">[*createdon:date=`%b<strong>%d</strong>`*]
</div>
<h3 class="job_title"><a href="[~[*id*]~]">[*pagetitle*]</a></h3>
[[tagLinks? &id=`[*id*]` &tv=`tags` &separator=`, ` &fap=`1` &path=`categories` &label=`Tags: ` &style=`job_tags`]]
<div class="job_info">
[*content*]
</div>
<ul class="job_data">
<li>Salary: <span>[*salary*]</span></li>
<li>Benefits: <span>[*benefits*]</span></li>
<li>Location: <span>[*location*]</span></li>
<li>Qualifications: <span>[*qualifications*]</li>
</ul>
<div class="cleared"></div>
</div>
</div>
{{sidebar_job}}
</div>
<div id="footer_wrap">
{{footer}}
</div>
</div>
</body>
</html>
And it doesn’t work. Just get a blank spot where the date should be. Why is the createdon tag not working in this context?