Spots in SmartCJ

Post Reply
elegant
Posts: 36
Joined: Sun Sep 08, 2019 1:46 pm

Spots in SmartCJ

Post 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!
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Spots in SmartCJ

Post by admin »

Hi!

you can just hardcode it into template and that's it
Don't forget to run script update
elegant
Posts: 36
Joined: Sun Sep 08, 2019 1:46 pm

Re: Spots in SmartCJ

Post by elegant »

Hardcoding is the solution for any issue :-) How can I do it with SmartCJ script?
elegant
Posts: 36
Joined: Sun Sep 08, 2019 1:46 pm

Re: Spots in SmartCJ

Post by elegant »

Or otherwise please just tell me how can I put specific thumbnail on top (1st) on all pages?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Spots in SmartCJ

Post 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?
Don't forget to run script update
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Spots in SmartCJ

Post 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
Don't forget to run script update
Post Reply