Please can you tell me if there is specific module position for the right side bar on the videos page. I have tried the js_side_bottom and js_side_top position but nothing is displayed on the videos page side bar.
Hi, Mike.
Here you have interesting article about it.
You'll need to edit:
ROOT/components/com_community/templates/default/videos.index.php
Copy it to ROOT/templates/your-template/html/com_community (if you don't have "html" or "com_community" folders, feel free to create them).
And look for word "sidebar". Add there your new module position.
Thanks for your quick reply. I have looked at the videos.index.php file and tried the position cSidebar but it still does not display anything on the sidebar. below is the code from the php files please can you tell me the position name to use:
<div class="cIndex">
<!--Featured Listing-->
<?php echo $featuredHTML; ?><!--call video.featured.php -->
<!--Normal Listing + Sidebar-->
<div class="cLayout">
<div class="cSidebar">
<!--Videos Category-->
<div class="cModule cVideos-Categories app-box">
<h3 class="app-box-header cResetH"><?php echo JText::_('COM_COMMUNITY_VIDEOS_CATEGORY');?></h3>
<div class="app-box-content">
<ul class="app-box-list for-menu cResetList">
<li>
<i class="com-icon-folder"></i>
<?php if( $category->parent == COMMUNITY_NO_PARENT && $category->id == COMMUNITY_NO_PARENT ){ ?>
<a href="<?php echo CRoute::_($allVideosUrl);?>"><?php echo JText::_( 'COM_COMMUNITY_VIDEOS_ALL_DESC' ); ?></a>
<?php
}
else
{
$catid = '';
if( $category->parent != 0) {
$catid = '&catid=' . $category->parent;
}
?>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=videos' . $catid ); ?>"><?php echo JText::_('COM_COMMUNITY_BACK_TO_PARENT'); ?></a>
<?php } ?>
</li>
<?php if( $categories ): ?>
<?php foreach( $categories as $row ): ?>
<li>
<i class="com-icon-folder"></i>
<a href="<?php echo CRoute::_($catVideoUrl . $row->id ); ?>">
<?php echo JText::_($this->escape($row->name)); ?>
</a>
<span class="cCount"><?php echo empty($row->count) ? '' : $row->count; ?></span>
</li>
<?php endforeach; ?>
<?php else: ?>
<?php if( $category->parent == COMMUNITY_NO_PARENT && $category->id == COMMUNITY_NO_PARENT ){ ?>
<li><div class="cEmpty cAlert"><?php echo JText::_('COM_COMMUNITY_GROUPS_CATEGORY_NOITEM'); ?></div></li>
<?php } ?>
<?php endif; ?>
</ul>
</div>
</div>
<?php if (count($featuredVideoUsers)>1) { ?>
<div class="cModule cVideos-Authors app-box">
<h3 class="app-box-header cResetH"><?php echo JText::_('COM_COMMUNITY_VIDEOS_FEATURED_USERS');?></h3>
<div class="app-box-content">
<ul class="cThumbDetails cResetList">
<?php
$featuredUser = array();
foreach($featuredVideoUsers as $featuredVideo) {
if(!in_array($featuredVideo->creator, $featuredUser)) {
?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=profile&userid='.$featuredVideo->creator); ?>" class="cThumb-Avatar cFloat-L">
<img class="cAvatar" src="<?php echo CFactory::getUser($featuredVideo->creator)->getThumbAvatar(); ?>" />
</a>
<div class="cThumb-Detail">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=profile&userid='.$featuredVideo->creator); ?>" class="cThumb-Title">
<?php echo $featuredVideo->getCreatorName(); ?>
</a>
<div class="cThumb-Brief small">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=videos&task=myvideos&userid='.$featuredVideo->creator); ?>"><?php echo $this->view('videos')->getUserTotalVideos($featuredVideo->creator); ?> <?php if($this->view('videos')->getUserTotalVideos($featuredVideo->creator)){ echo JText::_('COM_COMMUNITY_SEARCH_VIDEOS_TITLE'); } else { echo JText::_('COM_COMMUNITY_SINGULAR_VIDEO'); } ?></a>
</div>
</div>
</li>
<?php
$featuredUser[] = $featuredVideo->creator;
}
} //end foreach ?>
</ul>
</div>
</div>
<?php } ?>
</div><!--.cSidebar-->
<div class="cMain">
<?php echo $sortings; ?>
<div class="cVideoIndex">
<?php echo $videosHTML; ?><!--call video.list.php -->
</div>
</div><!--.cMain-->
</div><!--.cLayout-->
Hi, Mike.
Just paste this:
<?php $this->renderModules( 'my_position' ); ?>
<div class="cSidebar">