Hi,
I’m having a problem in a template that’s pulling up previously saved channel entry data into a SafeCracker page. Its a legal letter that is edited online (via a SafeCracker SAEF), saved into EE, then accessed and viewed by another party in this template.
The viewed letter is inside {exp:safecracker…} tags, because the viewing party needs to make certain selections, which are again saved to the channel entry.
All the other custom field data displays fine without a problem, but when I add
{entry_date format="%j %F %Y"}it just displays the EE tag and no date. If I just use the plain tag
{entry_date}it does display the entry date, but in the default format YYYY-MM-DD… which is not much use!
The entry date is NOT entered manually, or available to be edited by the user in the original SAEF, so its EE-generated and SHOULD be in the correct format. Can’t think why this won’t display. Here’s my (shortened) Safecracker code. The {entry_date} tags are third line from the bottom:
{exp:safecracker channel="mediation_notice" status="open" return="mediation_notice/agree/{segment_3}" author="{author_id}" logged_out_member_id="9" author_only="no" entry_id="{entry_id}" include_jquery="no" require_entry="yes" class="notice"}
<h1 class="under">BY FAX AND BY POST</h1>
<input type="hidden" name="url_title" id="url_title" value="{url_title}">
<input type="hidden" name="title" id="title" value="{title}">
<input type="hidden" name="notice_agreed_mediator" id="notice_agreed_mediator" value="" />
{code_casecourt}{code_caseaction}{casenumber} / {caseyear}
<h1 class="noticeHead">MEDIATION NOTICE</h1>
<div class="clearFloat wide3"></div>
<ol>
<li>The Applicant wishes to attempt mediation to resolve {notice_partofdispute} of its disputes with the Respondent and makes the following proposals.</li>
<li>The Applicant proposes to appoint ONE OF THE MEDIATORS BELOW as the mediator for this dispute. <a href="#mediators">Review the proposed mediators below this Notice</a>. Click the 'View More' button next to each mediator to see the full profile, CV and costs of the proposed mediators; then either (a) confirm or (b) make a new proposal of mediators, and PREPARE A MEDIATION RESPONSE.</li>
<li>The Applicant proposes that payment of the mediator's fee shall initially be borne by {notice_mediatorfees} and if the mediation fails, such fees as well as the parties' costs incurred in the mediation shall be recoverable as part of the costs of this action.</li>
<li>The Applicant proposes that an agreement between the parties as to the identity of the mediator and the terms of his or her appointment and participation by the parties in the mediation up to and including at least one substantive mediation session (of a duration determined by the mediator) with the mediator should qualify as a sufficient attempt at the mediation.</li>
<li>The Applicant proposes that the mediation should commence within {notice_commencement} days.</li>
{if notice_interstay_reqopp == "requests"}
<li>The Applicant {notice_interstay_reqopp} an interim stay of the legal proceedings for {notice_interstay_days} days pending the mediation process.</li>{/if}
{if notice_interstay_reqopp == "opposes"}
<li>The Applicant {notice_interstay_reqopp} an interim stay of the legal proceedings.</li>{/if}
<li>The Applicant's willingness to pursue mediation {notice_interstay_conditional} conditional upon an interim stay of the legal proceedings being granted.</li>
</ol>
Dated this {entry_date format="%j"} day of {entry_date format="%F %Y"}.
{notice_appl_solicitorname}
Solicitors for the Applicant
{/exp:safecracker}I’m also running some PHP in the template, but removing the PHP doesn’t seem to make any difference.
Nik
EE 2.5.2 build: 20120606 (not possible to upgrade to 2.5.3 because of extensive PHP code in templates)