I am currently building new website for my customer. One of the pages she needs, is a "product of the month" page. The page shows picture of the product and some text.
My problem is: how to select the picture from uploaded pictures, my customer needs to have an as easy way as possible, a drop-down list or something like that.
Help, anybody?
Template for "Product of the month" page
Re: Template for "Product of the month" page
Upload 12 pictures to your server:
image01.jpg
image02.jpg
image03.jpg
image_n.jpg
then but this to your template:
-R
image01.jpg
image02.jpg
image03.jpg
image_n.jpg
then but this to your template:
Code: Select all
{assign var='month' value=$smarty.now|date_format:"%m"}
<img src="server_path/uploads/images/image{$month}.jpg"/>