The example in this article describes the method of modifying the display effect of the picture collection by Imperial CMS. Share it with everyone for your reference. The specific steps are as follows:
1. Enter the backend - Templates - Label Templates - Manage Label Templates, modify the "Page Template Content" in the "Picture Collection Pagination Template", clear them all, and keep only "[! --smalldh--]"
2. Open e/class/t_functions.php and find the //Gallery model paging tag
The code is as follows:
$sdh.=$nbsp.""; if($i==0) { $firstpic=$showpic; } $rstr.="photosr[".$j."]=\"".addslashes($showpic)."\"; "; $optionstr.=""; $titleoption.=""; $listpage.=$nbsp."".$j.""; $nbsp=" ";
Recommended learning《Empirecms Tutorial》
Change this code to the following paragraph:
The code is as follows:
$sdh.=$nbsp.'< li>';
if($i==0)
{
$firstpic=$showpic;
}
$rstr.="photosr[".$j."]=\"".addslashes($showpic)."\";
";
$optionstr.="";
$titleoption.="";
$listpage.=$nbsp."".$j."";
This way in the content The result displayed on the page is:
The code is as follows:
You can write the specific style in the style sheet yourself. How to express it is up to you.
The advantages of doing this are:
1. The code generated by the front end meets the standards. The original href='' is now href=""
2 . You can choose some special effects yourself to realize the function of the picture collection, such as "fancybox", instead of using the default ugly special effects.
I hope this article will be helpful to everyone’s Imperial CMS website building.
The above is the detailed content of How to modify the display effect of the picture collection in Imperial CMS. For more information, please follow other related articles on the PHP Chinese website!