Tip: Using the fragmentation function of phpcms_PHP Tutorial

WBOY
Release: 2016-07-13 10:28:54
Original
1001 people have browsed it

For example, I have a piece of news that I want to display. Some have one title per line, some have two titles per line, and some have three titles per line. I also want to customize the color, style, etc. of the title. If I write it into a loop , if you think about it, is it very troublesome and not easy to implement? How do you judge whether this line should display one or two, and you can't adjust its order as you like.

The fragmentation function of phpcms solves this problem very well. Write the fragmentation tag in this piece of template file, and you can manage it in the background fragmentation management. The fragmentation function is that you can customize the html in this piece. The html will be reflected here as it is, and it will also be operated in the rich text editor.

This solves the problem.

My website http://www.dayecn.com uses the fragment function to update content in many places on the homepage.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/780575.htmlTechArticleFor example, I want to display such news titles, some have one title per line, and some have two titles per line. There are also three titles in a row, and the color, style, etc. of the titles must be customized, such as...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template