Page 1 of 1
Spots in SmartCJ
Posted: Wed Sep 18, 2019 6:13 pm
by elegant
Hey,
Could you guide me on how to choose a thumbnail, put the thumbnail on top of the main page and in all categories, link this exact thumbnail with a sponsor's URL, i.e. make a spot?
Thanks!
Re: Spots in SmartCJ
Posted: Thu Sep 19, 2019 6:59 am
by admin
Hi!
you can just hardcode it into template and that's it
Re: Spots in SmartCJ
Posted: Thu Sep 19, 2019 11:15 am
by elegant
Hardcoding is the solution for any issue

How can I do it with SmartCJ script?
Re: Spots in SmartCJ
Posted: Thu Sep 19, 2019 11:31 am
by elegant
Or otherwise please just tell me how can I put specific thumbnail on top (1st) on all pages?
Re: Spots in SmartCJ
Posted: Thu Sep 19, 2019 11:50 am
by admin
Well, there 2 options
1. we can add like 10 db fields (what thumbnail, where to add, permanently or not and so on)
then each time we generate a page - we make a couple of extra requests into DB so check if we have a special thumb to place somewhere and so on
2. or we can just add few lines into template and that's it
what's the point to add load for DB here?
Re: Spots in SmartCJ
Posted: Thu Sep 19, 2019 11:52 am
by admin
all pages: you can for example create a template "superthumb" and then add something like
<!--INCLUDE_TEMOPALTE_superthumb-->
where you need it
this way you can change it for all templates all together