Jump to content

adv option channels....


davex

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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