Jump to content

Recommended Posts

Posted

 

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?

Captura de pantalla 2021-02-14 a las 12.26.39.png

Posted

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}}

Captura de pantalla 2021-02-14 a las 12.53.45.png

Posted

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}}

 

  • Like 2

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...