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.
...