davex Posted February 14, 2021 Posted February 14, 2021 Hi, is there any way to put banners like categories or countries etc ... but that it was advertising only comes out if there is this channel It is possible to do it in some way or with some update? Quote
davex Posted February 14, 2021 Author Posted February 14, 2021 or I see another option in channels there is to put 2 images but in truth it only shows 1 the 2 back the 2 back: Screenshot 2 back As shown in channel because it is not shown and thus be able to put a banner each channel. <div class="img"> {{if $data.cover2_front!=''}} <img class="thumb" src="{{$data.base_files_url}}/{{$data.cover2_front}}" alt="{{$data.title}}"> {{else}} Quote
Tech Support Posted February 14, 2021 Posted February 14, 2021 You can use custom fields for this. Go to Settings -> Customization and enable custom fields for channels: If you need to upload an image advertising, enable file custom field If you need to specify HTML advertising, enable text custom field Then you can show this advertising in channel page, and also in video pages that belong to these channels. In channel page (dvd_view block template): <p> <label>Custom HTML code</label> <span>{{$data.custom1|smarty:nodefaults}}</span> </p> <p> <label>Custom file 1</label> <span>{{if $data.custom_file1}}{{$data.base_files_url}}/{{$data.custom_file1}}{{/if}}</span> </p> In video page (video_view block template): {{if $data.dvd.dvd_id>0}} <p> <label>Custom HTML code</label> <span>{{$data.dvd.custom1|smarty:nodefaults}}</span> </p> <p> <label>Custom file 1</label> <span>{{if $data.dvd.custom_file1}}{{$data.dvd.base_files_url}}/{{$data.dvd.custom_file1}}{{/if}}</span> </p> {{/if}} 2 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.