[[DateTimeJP? &format=`%Y.%m.%d` &type=`pub_date`]]
/***************************************************
Saving/Updating FdmDocument (escape fields added)
****************************************************/
function Save(){ //escape added
global $modx;
$this->fields['editedon']=time();
list($d, $m, $Y, $H, $M, $S) = sscanf($this->fields['pub_date'], "%2d-%2d-%4d %2d:%2d:%2d");
$this->fields['pub_date'] = strtotime("$m/$d/$Y $H:$M:$S");
if($this->fields['pub_date'] <= $this->fields['editedon']) {
$this->fields['published'] = 1;
} else {
$this->fields['published'] = 0;
} function mergeFields(&$fields) {// fill the form with the content of the document
global $modx;
debug_run('enter mergeFields -fields:',$fields);
//debug_run('mergeFields -sessions:',$_SESSION['fdm']);
if ($_SESSION['fdm']['model']==0 && ($_SESSION['fdm']['action']=='add')) {
//debug_run('in mergeFields','model=0 action=add -> return');
return $fields;
}
if (!class_exists('FdmDocument')) include_once($modx->config['base_path'].'assets/snippets/FDM/includes/fdm.db.class.inc.php');
$docObj = new FdmDocument($_SESSION['fdm']['source']);
$fields=array_merge($fields,$docObj->Gets());
if ($fields['pub_date']!=0) $fields['pub_date']=strftime('%d-%m-%Y %H:%M:%S',$fields['pub_date']);
$modx->config['url']=$docObj->makeUrl();;
unset($docObj);
[!Ditto? &startID=`3` &summarize=`5` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`&rtcontent=`Comments,blogContent`!]
[[Ditto? &startID=`3` &summarize=`5` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags` &language=`japanese-utf8` &dateFormat=`%Y年%m月%d日 (%a) `]]

たぶん ・・・ FDM 作者さんも追記の意味で使ってるような気もします (・_・) いや、そうではなくテンプレート変数の読み書きができるよって意味合いで入れているだけだと思います。
「tvblogContent」は追記の位置づけだと思ってたんですが、何か
他の意味があるのでしょうか?削除するのも気がひけたのでそのまま
残していたんですが。
じつは、「tvblogContent」 はここの部分に深くかかわっているのです。
あとは入力部分をリッチテキスト化と追記リンクをいじるだけです。
また躓いたら ・・・
<fieldset> <legend>Contenus</legend> <p> <label for="content">Content of the page</label><br /> <textarea name="content" id="content" rows="5" cols="50" eform="Du texte:html:1">[+content+]</textarea> </p> <p> <label for="tvblogContent">Blog Content</label><br /> <textarea name="tvblogContent" id="tvblogContent" rows="5" cols="50" type="text" eform="Enter the content of the blog:string:1" />[+tvblogContent+]</textarea> </p> </fieldset>
<fieldset> <legend>Contenus</legend> <label for="content">Content:[*blogContent*]</label> </fieldset>