By Alexandre Cayer on Tuesday, 17 March 2015
Posted in Technical Issues
Likes 0
Views 575
Votes 0
Hey Mark,

I want to alter the behavior of the link of the sidebar so that it goes straight to group instead of having the timeline. I have modified the FRoute on the a tag but on the file sidebar.groups.php:

<li class="widget-filter<?php echo $groupId == $group->id ? ' active' : '';?><?php echo $this->template->get('dashboard_groups_total') != 0 && $x > $this->template->get('dashboard_groups_total') ? ' hide' :'';?>"
data-dashboard-group-item
data-dashboardSidebar-menu
data-type="group"
data-id="<?php echo $group->id;?>">
<a href="<?php echo FRoute::groups( array( 'categoryid' => $group->getAlias() ) );?>"
title="<?php echo $this->html( 'string.escape' , $this->my->getName() ) . ' - ' . $this->html( 'string.escape' , $group->getName() ); ?>">
<i class="ies-users mr-5"></i> <?php echo $group->getName(); ?>
</a>
</li>

however it doesn't work. could you provide me a fix of the route ?
Hello Alexandre.

Please replace this code in ...\components\com_easysocial\themes\wireframe\dashboard\sidebar.groups.php

	<li class="widget-filter<?php echo $groupId == $group->id ? ' active' : '';?><?php echo $this->template->get('dashboard_groups_total') != 0 && $x > $this->template->get('dashboard_groups_total') ? ' hide' :'';?>"
data-dashboard-group-item
data-dashboardSidebar-menu
data-type="group"
data-id="<?php echo $group->id;?>">
<a href="<?php echo FRoute::dashboard( array( 'type' => 'group' , 'groupId' => $group->getAlias() ) );?>"
title="<?php echo $this->html( 'string.escape' , $this->my->getName() ) . ' - ' . $this->html( 'string.escape' , $group->getName() ); ?>">
<i class="ies-users mr-5"></i> <?php echo $group->getName(); ?>
</a>
</li>


with this code



<li class="widget-filter<?php echo $groupId == $group->id ? ' active' : '';?><?php echo $this->template->get('dashboard_groups_total') != 0 && $x > $this->template->get('dashboard_groups_total') ? ' hide' :'';?>">
<a href="<?php echo FRoute::groups( array('layout' => 'item' , 'id' => $group->getAlias()));?>"
title="<?php echo $this->html( 'string.escape' , $this->my->getName() ) . ' - ' . $this->html( 'string.escape' , $group->getName() ); ?>">
<i class="ies-users mr-5"></i> <?php echo $group->getName(); ?>
</a>
</li>



Hope this help
·
Tuesday, 17 March 2015 11:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Izzan,

Close to work. the <a href="/<?php echo FRoute::groups( array('layout' => 'item' , 'id' => $group->getAlias()));?>" however return the url without the domain main, which when I add manually, works.

Removing the / made it works. Thanks! Considering a choice on the template (as to have the same sidebar as profile or to the regular would be good) in dashboard section would be a good addition
·
Tuesday, 17 March 2015 12:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alexandre.

You're welcome
·
Tuesday, 17 March 2015 12:44
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post