dedecms自定義表單支援標籤方法
阿新 • • 發佈:2018-12-12
預設的DEDE,在自定表單頁沒解析他的標籤,如 {dede:include filename="…/default/head.htm"/} {dede:include filename="…/default/footer.htm"/} 這兩個是最常見的,頭部和尾部 但我們把他放在自定義表單的模板裡,他不解析…當文字來看待來了 現放出解析辦法 開啟/plus/diy.php 搜尋$postform. = KaTeX parse error: Expected '}', got 'EOF' at end of input: …templets/plus/{diy->postTemplate}"; 改為: // include DEDEROOT."/templets/plus/{$diy->postTemplate}"; $datalist = new DataListCP(); $datalist->SetParameter(‘action’, ‘post’); $datalist->SetParameter(‘diyid’, $diyid); KaTeX parse error: Expected '}', got 'EOF' at end of input: …templets/plus/{
另一種方法
將自定義表單form中的html複製到模板中建立欄目模板