By User on Monday, 17 October 2022
Posted in EasySocial
Replies 1
Likes 0
Views 218
Votes 0
Hello. "All videos" section display users' and cluster's videos.

I'm looking for the way to display cluster (group) title if video was added to cluster. Like on attached screen. Add some "mark".

It's important in this case: For example moderator see some "forbidden adult video" in "all videos section". He is angry and ready to delete it. But with this "mark" moderator can understand that video was added to private "adult group and visible for few users.

I found file: components/com_easysocial/themes/wireframe/videos/default/item.php
or override: templates/shaper_helixultimate/html/com_easysocial/videos/default/item.php

There is code:

<?php if ($browseView) { ?>
<div class="es-card__meta t-lg-mb--sm">
<ol class="g-list--horizontal">
<li class="g-list__item"><?php echo $this->html('html.user', $video->creator, true);?></li>

</ol>
</div>
<?php } ?>


Can you please give me a hint? What code should I add to display clickable cluster's title?

Thanks.
Hey there,

You can try the following code in order to get the title of the cluster of the video:

$cluster = $video->getCluster();
$clusterTitle = null;

if ($cluster) {
$clusterTitle = $cluster->getTitle();
}
·
Monday, 17 October 2022 10:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post