I notice that on the edit category and home page thingy in the nopC that I can insert a picture. I want to insert a picture that changes on each reload.
What would be the best method to create a picture set that changes on each reload?
I notice that on the edit category and home page thingy in the nopC that I can insert a picture. I want to insert a picture that changes on each reload.
What would be the best method to create a picture set that changes on each reload?
Thank you
I would do it by storing the category images in a specific folder, with file naming having the following pattern:
category-[catId]-[sequenceNumber].[extension]
Then in the View, write some simple codes to randomly pick the picture specific to that category. :D
I notice that on the edit category and home page thingy in the nopC that I can insert a picture. I want to insert a picture that changes on each reload.
What would be the best method to create a picture set that changes on each reload?
Thank you
I would do it by storing the category images in a specific folder, with file naming having the following pattern:
category-[catId]-[sequenceNumber].[extension]
Then in the View, write some simple codes to randomly pick the picture specific to that category. :D
I notice that on the edit category and home page thingy in the nopC that I can insert a picture. I want to insert a picture that changes on each reload.
What would be the best method to create a picture set that changes on each reload?
Thank you
I would do it by storing the category images in a specific folder, with file naming having the following pattern:
category-[catId]-[sequenceNumber].[extension]
Then in the View, write some simple codes to randomly pick the picture specific to that category. :D
Any idea where I get that simple codes?
It should be simple enough that you can write it yourself, something like: