Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

Change 'MORE NEWS' link in YT megamenu item
(1 viewing) (1) Guest
Report bugs, Userguide, New Ideas..
  • Page:
  • 1
  • 2

TOPIC: Change 'MORE NEWS' link in YT megamenu item

Change 'MORE NEWS' link in YT megamenu item 12 years ago #5773

  • yugamkhosla
  • OFFLINE
  • Single Product
  • Senior Boarder
  • Posts: 56
  • Karma: 1
I have purchased SJnews template. I want to change the default 'more news' link present in mega menu but unable to find any place . Checked menu item and extension item but coould not find any place. screenshot is attached below.
Attachments:

Re: Change 'MORE NEWS' link in YT megamenu item 12 years ago #5781

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Dear Yugam Khosla,

You can change the 'more news' link in "templates\sj_news25\html\mod_articles_latest\default.php".

Thanks
Ticket System | Join our Clubs to download our extensions and templates

Re: Change 'MORE NEWS' link in YT megamenu item 12 years ago #5791

  • yugamkhosla
  • OFFLINE
  • Single Product
  • Senior Boarder
  • Posts: 56
  • Karma: 1
Thanks for replying.

Tried what you have told. But changing 'More news' link from that file effects all the menu items. What I want is to have different 'More News' link path on different menu items instead of present same llink at all menu items.

Plz help.

Re: Change 'MORE NEWS' link in YT megamenu item 12 years ago #5793

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Dear Yugam Khosla,

* go to "modules\mod_articles_latest\helper.php", finding:

if ($access || in_array($item->access, $authorised)) {
	// We know that user has the privilege to view the article
	$item->link = JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catslug));
} else {
	$item->link = JRoute::_('index.php?option=com_users&view=login');
}


=>

if ($access || in_array($item->access, $authorised)) {
	// We know that user has the privilege to view the article
	$item->link = JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catslug));
} else {
	$item->link = JRoute::_('index.php?option=com_users&view=login');
}

$item->catlink = JRoute::_(ContentHelperRoute::getCategoryRoute($item->catid));



* go to "templates\sj_news25\html\mod_articles_latest\default.php", finding:

<?php if($moduleclass_sfx==''){?><a href="#" class="more-news"><?php echo 'More news';?></a><?php } ?>


=>

<?php if($moduleclass_sfx==''){?><a href="<?php echo $item->catlink;?>" class="more-news"><?php echo 'More news';?></a><?php } ?>


Thanks
Ticket System | Join our Clubs to download our extensions and templates
Last Edit: 11 years, 6 months ago by loitt.
The following user(s) said Thank You: yugamkhosla

Re: Change 'MORE NEWS' link in YT megamenu item 12 years ago #5795

  • yugamkhosla
  • OFFLINE
  • Single Product
  • Senior Boarder
  • Posts: 56
  • Karma: 1
Wow.. that worked.. exactly what i needed.

Thanks a lot SA Suporter !!

Can I ask one more favour. My other query @ www.smartaddons.com/forum/145-sj-mega-menu-module/5646-create-clickable-category-titles#5646 is still unanswered.

That query is very much similar to this one. I want the heading category name in menu to contain category link. Plz help in that also.

Re: Change 'MORE NEWS' link in YT megamenu item 12 years ago #5797

  • loitt
  • OFFLINE
  • Platinum Boarder
  • Posts: 2222
  • Karma: 48
Dear Yugam Khosla,

Business travel, Quick Links and Travel Tips are the modules at the position "menu-travel".

They are only the title of module, not sub-categories title

+ Business travel is SJ Basic News module

+ Quick Links is menu module

+ Travel Tips is Latest News module

If want to add the links to them, you can customize these module.

Thanks
Ticket System | Join our Clubs to download our extensions and templates
  • Page:
  • 1
  • 2
Time to create page: 0.24 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes