Tip: Use the phpcms fragment function _ PHP Tutorial

Source: Internet
Author: User
Tip: Use the phpcms fragment function. For example, I have a piece of news title that I want to display, some have a line of one title, some have a line of two titles, and one line of three titles, and I want to customize the color and style of the title, such

For example, I have a piece of news title that I want to display, some have a line of one title, some have a line of two titles, and one line of three titles, and I want to customize the color and style of the title, if it is written into a loop, do you think it is very troublesome and difficult to implement it? How do you determine whether this line is to show one or two, and you cannot adjust its order as you like.

The fragment function of phpcms can solve this problem very well. write the fragment tag in the template file to manage the fragment in the background, the fragment function is the custom html. The html you write will be displayed as is and operated in the rich text editor.

This solves this problem.

My site http://www.dayecn.com home page is updated with the fragment feature in multiple places.

...

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.