By Ulysses Gonzalez on Thursday, 24 August 2017
Posted in General Issues
Likes 0
Views 677
Votes 0
Like to change the actual link for "favourites" to match the link "bookmarks".
Everything is correct, as I did the over-rides correct.

Went into this file:


components/com_easydiscuss/themes/wireframe/toolbar/default.php



Attempted to do an override for default.php here:


website/html/com_easydiscuss/toolbar/default.php


By changing the following;


<?php if ($this->config->get('main_favorite')) { ?>
<div class="popbox-dropdown-nav__item <?php echo $active == 'favourites' ? ' is-active' : '';?>">
<a href="<?php echo EDR::_('view=favourites');?>" class="popbox-dropdown-nav__link">
<div class="o-flag">
<div class="o-flag__image o-flag--top">
<i class="popbox-dropdown-nav__icon fa fa-heart-o"></i>
</div>
<div class="o-flag__body">
<div class="popbox-dropdown-nav__name"><?php echo JText::_('COM_EASYDISCUSS_TOOLBAR_MY_FAVOURITES');?></div>
<ol class="g-list-inline g-list-inline--delimited popbox-dropdown-nav__meta-lists">
<li><?php echo JText::sprintf('COM_EASYDISCUSS_TOOLBAR_MY_FAVOURITES_POST', $this->profile->getTotalFavourites()); ?></li>
</ol>
</div>
</div>
</a>
</div>
<?php } ?>



to the following;



<?php if ($this->config->get('main_favorite')) { ?>
<div class="popbox-dropdown-nav__item <?php echo $active == 'bookmarks' ? ' is-active' : '';?>">
<a href="<?php echo EDR::_('view=bookmarks');?>" class="popbox-dropdown-nav__link">
<div class="o-flag">
<div class="o-flag__image o-flag--top">
<i class="popbox-dropdown-nav__icon fa fa-heart-o"></i>
</div>
<div class="o-flag__body">
<div class="popbox-dropdown-nav__name"><?php echo JText::_('COM_EASYDISCUSS_TOOLBAR_MY_FAVOURITES');?></div>
<ol class="g-list-inline g-list-inline--delimited popbox-dropdown-nav__meta-lists">
<li><?php echo JText::sprintf('COM_EASYDISCUSS_TOOLBAR_MY_FAVOURITES_POST', $this->profile->getTotalFavourites()); ?></li>
</ol>
</div>
</div>
</a>
</div>
<?php } ?>


Unfortunately, that didn't work..
What did I do incorrect?

Is there a different file needing change in order to change the link?
Hey Ulysses,

You can read my explanation here about the Easydiscuss SEO routing : https://stackideas.com/forums/forum-url-structure#reply-356417


<?php echo EDR::_('view=favourites');?>


Regarding these view you actually can't simply modify it, is because these view name is referring Easydiscuss routing itself, if you change it to view=bookmark, Joomla do not know what is this view you trying to access, this is why that is not working.

I already help you hardcoded this from your previous thread what i attached that default.php file, it should show correctly with the URL alias now.
·
Thursday, 24 August 2017 18:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you, Arlex:D
·
Friday, 25 August 2017 13:22
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome Ulysses and glad to know that your issue is resolved.

Regards.
·
Friday, 25 August 2017 13:42
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Friday, 25 August 2017 13:43
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post