By User on Saturday, 23 March 2019
Posted in General Issues
Replies 3
Likes 0
Views 520
Votes 0
Hello. Can you please give me some advice?
"Custom Filters" at "All videos" layout depends only on video tags?
So if I don't use in backend "ES > Settings > Videos > Layout > Display Tags: OFF" it will be impossible to create "Custom Filters"?
So I suggest to turn off this "Custom Filters" area in SideBar if tags is turned OFF (or another option).

At the moment there is only one way to hide "Custom Filters"? Make override for /templates/my_joomla_template/html/mod_easysocial_sidebar/videos.php and delete code below?

Thanks,


<?php if ($canCreateFilter && $browseView) { ?>
<hr class="es-hr" />
<div class="es-side-widget" data-section data-type="custom-filters">
<?php echo $this->lib->html('widget.title', 'COM_EASYSOCIAL_CUSTOM_FILTERS'); ?>

<div class="es-side-widget__bd">
<div class="es-side-widget__filter">
<ul class="o-tabs o-tabs--stacked" data-section-lists>
<?php if ($customFilters) { ?>
<?php foreach ($customFilters as $customFilter) { ?>
<li class="o-tabs__item <?php echo $filter == 'customFilter' && $activeCustomFilter && $activeCustomFilter->id == $customFilter->id ? 'active' : '';?>" data-filter-item data-type="hashtag" data-tag-id="<?php echo $customFilter->id ?>">
<a href="/<?php echo $customFilter->permalink; ?>"
title="<?php echo JText::_($customFilter->title); ?>"
class="o-tabs__link"
>
<?php echo '#' . $customFilter->title; ?>
</a>
</li>
<?php } ?>
<?php } ?>
</ul>

<?php if (!$customFilters) { ?>
<div class="t-text--muted">
<?php echo JText::_('COM_EASYSOCIAL_NO_CUSTOM_FILTERS_AVAILABLE'); ?>
</div>
<?php } ?>
</div>
</div>

<a href="/<?php echo $createCustomFilterLink;?>" class="btn btn-es-primary-o btn-block t-lg-mt--xl"
data-video-create-filter
data-type="videos"
data-uid="<?php echo $uid;?>"
data-cluster-type="<?php echo $type;?>"
>
<?php echo JText::_('COM_ES_NEW_FILTER'); ?>
</a>
</div>
<?php } ?>
Hi there,

At the moment there is only one way to hide "Custom Filters"? Make override for /templates/my_joomla_template/html/mod_easysocial_sidebar/videos.php and delete code below?


If you want to remove "Custom Filters", module template override will be the best way for it as what you mentioned above and is correct too.

But just need the following PHP code will be enough, if not it will cause layout issue:

<?php echo $this->lib->html('widget.title', 'COM_EASYSOCIAL_CUSTOM_FILTERS'); ?>

<div class="es-side-widget__bd">
<div class="es-side-widget__filter">
<ul class="o-tabs o-tabs--stacked" data-section-lists>
<?php if ($customFilters) { ?>
<?php foreach ($customFilters as $customFilter) { ?>
<li class="o-tabs__item <?php echo $filter == 'customFilter' && $activeCustomFilter && $activeCustomFilter->id == $customFilter->id ? 'active' : '';?>" data-filter-item data-type="hashtag" data-tag-id="<?php echo $customFilter->id ?>">
<a href="<?php echo $customFilter->permalink; ?>"
title="<?php echo JText::_($customFilter->title); ?>"
class="o-tabs__link"
>
<?php echo '#' . $customFilter->title; ?>
</a>
</li>
<?php } ?>
<?php } ?>
</ul>

<?php if (!$customFilters) { ?>
<div class="t-text--muted">
<?php echo JText::_('COM_EASYSOCIAL_NO_CUSTOM_FILTERS_AVAILABLE'); ?>
</div>
<?php } ?>
</div>
</div>

<a href="<?php echo $createCustomFilterLink;?>" class="btn btn-es-primary-o btn-block t-lg-mt--xl"
data-video-create-filter
data-type="videos"
data-uid="<?php echo $uid;?>"
data-cluster-type="<?php echo $type;?>"
>
<?php echo JText::_('COM_ES_NEW_FILTER'); ?>
</a>
·
Monday, 25 March 2019 11:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post