Joke Collection Website - Blessing messages - How does phpcms edit templates online? Phpcms edits the template online and reports an error after saving it.
How does phpcms edit templates online? Phpcms edits the template online and reports an error after saving it.
First, you need to find the table in the database. The table corresponds to v9_page, and the corresponding template file is \ modules \ content \ templates \ content _. Open the edit. Take adding a main title and a subtitle to a content as an example. When you open the edit page of a single page, you will find two other input tabs. PHPCMS is a website management software. The software adopts modular development and supports various classification methods, which can facilitate the design, development and maintenance of personalized websites.
Support a variety of program combinations, can easily realize the migration of website platform, can widely meet the needs of websites of various sizes, and has high reliability. Is a powerful, easy to use and extensible excellent website management software, with articles, downloads, pictures, classified information, movies, shopping malls, collections, finance and other functions.
PHPCMS was founded in 2005 by Zhong (net name: Breeze), a well-known entrepreneur born in 1980s in China. It is a well-known website building tool in China. In 2009, Zhong, the founder of PHPCMS, left PHPCMS and founded CmsTop, a CMS product in China media field.
Phpcms is the leading website content management system in China and an open source PHP development framework. Phpcms consists of more than 20 functional modules, such as content model, membership, ask, topic, finance, order, advertisement, mail subscription, short message, custom form, website search, etc. It has five built-in content models: news, pictures, downloads, information and products. Phpcms adopts modular development, supports custom content model and member model, and can customize fields.
How does phpcms call custom fields?
Phpcms_v9 Multi-graph field Description of calling custom fields for content page, home page and paging: Name of custom multi-graph field 1 Copy code of calling content page is as follows: {loop$shigongtu$r}{/loop}2 The first recommended bit of calling home page and paging calls the custom field. After adding a custom field to the model, you must click Yes on the Call in the Suggestion Tab, and then adjust the data in the same way. Remember, if you add an article, you must update it before it is displayed. Custom segments will only appear in suggestions. After selecting, select the previously added article without displaying it. The updated article shows an example: the copy code is as follows: {PC: content action = "position" POSID = "recommended bit ID" num = "30" thumb = "1"moreinfo = "1"order = "listorderdesc"} {loop $ data $ key.
{str_cut($val,20)}
{/loop}{/pc} User-defined fields called by common lists or columns are displayed after {pc:contentaction="lists "and the sub-table moreinfo= 1 (equal to 1). 0) example: the copy code is as follows: {PC: content action = "lists" moreinfo = "1"catid = "51"order = "id" num = "5" cache = "3600"} {loop $ data $ r}
{phpeval("$arr= "。 $ r。 ";" ); } {loop $ arr $ val} {$ val }| {/loop} {/PC} Note: It turns out that you need to assign a value to a PHP variable once in the template. The variable array found by the LOOP tag can no longer use the LOOP loop directly. The copy code is as follows: {PC: getsql = "select * from V9 _ house _ data where d = 2" num = "1"cache = "3600" return = "data"} {loop $ data $ r} {PHP eval ("$ arr ="). $ r); }//This assignment must be added to make the loop variable array {loop $ arr $ rs} {$ rs} {/loop} {/loop} {/pc} a secondary array. How to publish a website after IIS installation?
Hello. Firstly, FTP is set up on the server, and then the data is uploaded to the local server with the flashfxp tool to install IIS. Just publish the website. The program of CMS is PHP language and needs the support of MYSQL database. It is recommended to match IIS+PHP+MYSQL environment on the server. If not, you can ask your service provider to help you build and configure MYSQL database. Here is a tutorial for publishing IIS websites. I hope it helps you.
How to set it up on a cms2.0 computer?
1. All template schemes are saved in the directory. /phpcms/templates/ (For online modification, please set the directory to 777 via ftp and apply it to subdirectories).
2. The template scheme currently used by the website is: default template, and the saving path is:. /phpcms/templates/default/。 Changes in other template schemes will not affect the display of the website foreground.
3. If you need to add a website template scheme, please upload the new template scheme to. /phpcms/templates/
4. If you need to apply a new website template scheme, please set this template scheme as the system default scheme.
- Related articles
- Can I still get text messages when my mobile phone is hacked by others?
- What about Shenzhen Dianyida Technology Co., Ltd.?
- Mobile phones keep popping up advertisements. Which software brought it in?
- Is it useful for the police security equipment network to receive the certificate of honor?
- What's the phone number of 0 125903200?
- What's the story of Wang Yong, the younger brother of Wuhan Zhanyi Express?
- What is the center number of Unicom SMS?
- Excuse me. Can I refuse overdue home visits?
- My friend introduced me to a girlfriend I have never met. What should I say when texting for the first time?
- How to register the mobile banking of Bank of Communications?