How to modify the display effect of the picture collection in Imperial CMS

silencement
Release: 2019-11-26 14:52:42
forward
2148 people have browsed it

How to modify the display effect of the picture collection in Imperial CMS

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."'".$picname."'"; if($i==0) { $firstpic=$showpic; } $rstr.="photosr[".$j."]=\"".addslashes($showpic)."\"; "; $optionstr.=""; $titleoption.=""; $listpage.=$nbsp."".$j.""; $nbsp=" ";
Copy after login

Recommended learning《Empirecms Tutorial

Change this code to the following paragraph:

The code is as follows:

$sdh.=$nbsp.'< li>How to modify the display effect of the picture collection in Imperial CMS';
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:

  • 图片一
  • Copy after login

    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!

    Related labels:
    source:www.word666.com
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!