{assign name="_tpl_page_type" value="[_page_type]" /} {assign name="_tpl_is_pagination" value="[_is_pagination]" /} {php} $_tpl_vars=\util\Tools::cp_page_tpl_vars($_tpl_page_type); $_tpl_id=$_tpl_vars['id']; $_tpl_name=$_tpl_vars['name']; $_tpl_title=$_tpl_vars['title']; $_tpl_url_required=$_tpl_page_type=='relation_url'?true:false; $_tpl_match_global=true; if($_tpl_is_pagination){ $_tpl_id.='_pagination'; $_tpl_name.='[pagination]'; $_tpl_title='分页'; $_tpl_url_required=true; $_tpl_match_global=false; } {/php}

规则中无{:cp_sign('match')}标签时,自动将完全匹配的值保存为{:cp_sign('match')}标签以供拼接调用 XPATH匹配到的值自动保存为{:cp_sign('match')}标签以供拼接调用 JSON匹配到的值自动保存为{:cp_sign('match')}标签以供拼接调用

{if $_tpl_match_global} {else/} {/if}