phseven Posted May 30, 2022 Share Posted May 30, 2022 Possible to write here a guide on how to plit channels by channel groups? Quote Link to comment Share on other sites More sharing options...
Tech Support Posted May 30, 2022 Share Posted May 30, 2022 Please provide more details on your question. The obvious answer will be like "go to admin panel and assign channel group to each channel". But maybe you are trying to ask something else? Quote Link to comment Share on other sites More sharing options...
phseven Posted May 30, 2022 Author Share Posted May 30, 2022 I'm looking to separate channels groups so I can display on different pages each group. Example Groups: TV series , Movies, Music Videos. Maybe adding on top menu each group and using display filter to display each group with common template. Or if you have a easier solution let me know Quote Link to comment Share on other sites More sharing options...
Tech Support Posted May 31, 2022 Share Posted May 31, 2022 It works in the same way in all cases. 1) First you need to modify list_dvds block that renders list of channels - to add support for filtering by channel group: https://kvs-demo.com/admin/project_pages.php?action=change_block&item_id=channels||list_dvds||channels_list&item_name=Channels List In block parameters you need to enable var_dvd_group_dir=group, and after doing so you will be able to filter this list by passing channel group directory in group parameter in the URL: https://www.kvs-demo.com/channels/?group=test 2) Next, it doesn't show block title correctly, it doesn't consider filtering there. Then you need to update this block template as well. The block title is set by this line: {{assign var="list_channels_title" value=$lang.channels.list_title_by_sorting[$sort_by]}} Should be changed like this (e.g. if we are rending list by group, then take title from group title, otherwise use default title): {{if $list_type=='dvds_groups'}} {{assign var="list_channels_title" value=$dvd_group_info.title}} {{else}} {{assign var="list_channels_title" value=$lang.channels.list_title_by_sorting[$sort_by]}} {{/if}} 3) Finally, similar title logic should be probably applied to the page itself, for HTML title: https://kvs-demo.com/admin/project_pages.php?action=change&item_id=channels Instead of this line: {{assign var="page_title" value=$lang.html.channels_title}} Use this: {{if $storage.list_dvds_channels_list.list_type=='dvds_groups'}} {{assign var="page_title" value=$storage.list_dvds_channels_list.dvd_group_info.title}} {{else}} {{assign var="page_title" value=$lang.html.channels_title}} {{/if}} Quote Link to comment Share on other sites More sharing options...
phseven Posted June 1, 2022 Author Share Posted June 1, 2022 Thank you , it works Quote Link to comment Share on other sites More sharing options...
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.