Sometimes we need to call the first big picture instead of the thumbnail in the article content directly on the list page, while Zhimeng does not call the function of the first big picture by default, but we can modify the call ourselves. Here's how to call it:
First find and open the/include/common.func.php file, and add the following code at the bottom:
//Convert the zoom image to the first picture of the article
function firstimg($str_pic)
{
$str_sub=substr($str_pic,0,-7). ".jpg";// Delete the last seven digits of the thumbnail string and add the suffix. jpg
return $str_sub;
}
Save after adding, and call through the following tags in the list page template:
[field:litpic function='firstimg(@me)'/]

Post reply

Can't comment until