For the carousel view of the front of the site, we should also write the picture to the front page of the dead, if we want the staff to add their own background carousel view of it, phpcms also have template image, we just put users incoming image link you can go down, as
this is where carousel figure, we only need to replace it pictures here link users to upload pictures, we have for convenience, the extract alone out here as a module listLunBo.html
while the original index.html
is replaced by the
Next we create a new section, which is called the carousel Figure
and found section of the template can choose listLunBo
manage content carousel figure we find Wang Libian add content to
select the picture click the start upload
click OK
at this time is not finished, we click on the thumbnail
to upload this picture as a thumbnail
display so we click on save publish
course, we must remember what went inside the loop listLunBo.html
following
cycle here is still lists circulation, after all, this is a list of a thing, then catid ID designated carousel figure
{thumb($r[thumb], 368, 238)}
This is a thumbnail picture, that is, carousel figure shows the page, fixed format is the way behind the 368 and 238 is the size of the picture, can develop their own, as is this
Click on the text to jump to a specific page, you will find, I jumped, but inside I was wearing no picture / ???, amazing! Show.html we use the template, which is a template for writing articles, but writing articles {$ content} seems to only support text, picture how to do? Do not panic, we create a new showPic.html
, and the show.html
inside stuff copied over
modified in such a way, you can display the picture, do not worry, we go to modify the template
to modify the template here to showPic.html
then update the cache, open again, we will find themselves filling into pictures
found this picture is too big, we can specify the size of his own, is the front end of the thing, and they can be modified.
Add this to complete our Carousel Figure