Phpcms recommended bits cannot call custom fields _php Tutorial

Source: Internet
Author: User
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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.