Yt.cms The setting method of outputting the first picture if there is a picture in the article, and outputting the default picture if there is no picture

web front end seven thousand three hundred and seventy-one 12 years ago (2012-07-06)

The tag of using yt.cms to call a picture is:<# xiaoyi/first/img #>. The default yt.cms calls the first picture when it calls a picture, and nothing when it doesn't! Sometimes the effect is not ideal!

It is simple to call a set default image when there is no image in the article. The specific setting method is as follows:

First, open the following file. The specific path is as follows:

PLUGIN/YTCMS/FUNCTION/YT.Function. ASP

Search in this file:

aryTemplateTagsValue(c)=""

Modify it to read:

AryTemplateTagsValue (c)="Here is your default image path"

Save after modification, and then go to the background to rebuild to see the effect!