Traditional Culture Encyclopedia - Photography and portraiture - 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. First, set FTP on the server. Then use the flashfxp tool to upload the data to the local server. Then install IIS and publish the website. CMS program is written in PHP language. It needs the support of MYSQL database. It is recommended that the server be equipped with IIS+PHP+MYSQL environment. 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.
- Previous article:Good morning, positive energy, a simple sentence, a complete book.
- Next article:How to Become a Photographer of Fashion Magazine
- Related articles
- Where can I buy a SLR camera in Beijing?
- What skills do boys learn better?
- How many places does Enshi Momaji photography rank?
- Chen Heqin's Classic Motto
- Will the domestic Honda cruise locomotive be worth as much as Harley! The color of water cooling machine head can be customized.
- Cheat my wife into taking pictures.
- How to choose girls' swimsuits? Selection skills of girls' swimsuits
- Sean and Ebo Bazaar are in the same box again, and forgot to admire CP?
- Beautiful sentences about scenery
- Where will Hefei Feidong visit in two days? Recommend tourist routes.