The default phpcms is unable to invoke the custom field using the recommended bit, write directly {pc:content action= "position" posid= "catid= DESC" order= "Listorder" 4 "} There is no error, but the data cannot be called, and the blank is displayed.
Calling code
01.{pc:content action= "position" posid= "+" catid= "order=" Listorder DESC "num=" 4 "} 02. {Loop $data $n $r} 03. {$r ["Kk_date"]} 04. {/loop} 05. {/PC} code description
action= "position" content recommended list
Posid= "30" invokes the recommended bit ID of 30
Catid= "24" Call column ID 24
order= "Listorder DESC" sort of would not say
Num= "4" showing four items
After you have completed the above code, it is generally not possible to display the fields in PHPCMS background Model Management.
PHPCMS model Settings
1th Step: Successfully login to phpcms backstage.
2nd Step: Open content >> content related Settings >> Model Management >> Find the model that corresponds to yourself.
3rd Step: Open the model to find and open "field management" and click "Modify" on the field you need to display.
4th step: Select Yes and OK to save in the last countdown to the third "call in recommended bit label".
The 5th step: Then in your own need to display the text again click on the changes, and then save to take effect (what do not change the line to modify the save).
6th step: Update the site cache to take effect.
http://www.bkjia.com/PHPjc/752070.html www.bkjia.com true http://www.bkjia.com/PHPjc/752070.html techarticle The default phpcms is unable to invoke the custom field using the recommended bit, and the direct write {pc:content action=position posid=30 catid=24 order=listorder DESC num=4} will not go wrong. But it just can't be adjusted ...