Jump to content

How to hide Inactive Channels, CS and Models


Recommended Posts

9 hours ago, Tech Support said:

do you mean you want to hide their contents, e.g. display empty area?

Yes I just want to display only header and footer, - and Hide all Name and other all things 


I want to display text in page center like: "This Channel was Deleted"

Even If HTTP 200 or 410

Link to comment
Share on other sites

In Website UI -> Pages -> Common Videos List template you have a block like this:

<div class="main-container">
	{{if $storage.list_videos_common_videos_list.list_type=='content_sources'}}
		{{insert name="getBlock" block_id="content_source_view" block_name="Sponsor Info"}}
	{{elseif $storage.list_videos_common_videos_list.list_type=='models'}}
		{{insert name="getBlock" block_id="model_view" block_name="Model Info"}}
	{{elseif $storage.list_videos_common_videos_list.list_type=='dvds'}}
		{{insert name="getBlock" block_id="dvd_view" block_name="Channel Info"}}

You need to wrap this block into a bigger block like this:

{{if $storage.list_videos_common_videos_list.list_type=='content_sources' && $storage.list_videos_common_videos_list.content_source_info.status_id==0}}
	Site is deleted
{{elseif $storage.list_videos_common_videos_list.list_type=='models' && $storage.list_videos_common_videos_list.model_info.status_id==0}}
	Model is deleted
{{elseif $storage.list_videos_common_videos_list.list_type=='dvds' && $storage.list_videos_common_videos_list.dvd_info.status_id==0}}
	Channel is delete
	<div class="main-container">
		... the original code as it was


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.

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