1. The best solution for calling the column image on the phpcms column page:
phpcms calls the highest parent column image:
{$CATEGORYS[$top_parentid][image]}
phpcms calls directly Parent column picture:
{$CATEGORYS[$parentid][image]}
phpcms calls the current column picture:
{$CATEGORYS[$catid][image]}
phpcms calls the column picture with the specified id:
{$CATEGORYS[78][image]}
If the secondary column does not set a picture, then the default Call the picture of the parent column
{if $image}{else}
{/if}
2. As follows:
{pc:content action="category" catid="$top_parentid" num="20" siteid="$siteid" order="listorder ASC"} {loop $data $r}{/loop} {/pc}{/loop} {/pc} {pc:content action="lists" catid="$r[catid]" num="5" siteid="$siteid" order="id desc" }{pc:content action="position" catid="$r[catid]" num="1" order="id DESC" posid="32"} {loop $data $r}
{str_cut($r[description],116,'..')}[详情]
{loop $data $val}
- [{date('m-d',$val[inputtime])}]
{/loop} {/pc}
Recommended related tutorials: phpcms tutorial
The above is the detailed content of How to retrieve column pictures in phpcms. For more information, please follow other related articles on the PHP Chinese website!