0
We're currently testing the Mosets Tree plugin on our staging site. Here's an issue I'm trying to fix:
On the page below I've enabled a simple Ranking module that is returning results normally. However, the URL that is being emitted is different than the structure our site is programmed to display properly.
Here's the page with the module. http://staging.boardroomcorp.net/popular
Let me explain, the link that your module is emitting for the top item does not use our normal template:
http://staging.boardroomcorp.net/component/mtree/article/travel-a-recreation/does-your-car-smell-funny
Here is what the proper URL structure should look like:
http://staging.boardroomcorp.net/content/article/travel-a-recreation/does-your-car-smell-funny
Is it possible to modify your code base to make this adjustment? Please advise.
Thanks,
Jeff Porper
Web Developer
Boardroom, Inc.
On the page below I've enabled a simple Ranking module that is returning results normally. However, the URL that is being emitted is different than the structure our site is programmed to display properly.
Here's the page with the module. http://staging.boardroomcorp.net/popular
Let me explain, the link that your module is emitting for the top item does not use our normal template:
http://staging.boardroomcorp.net/component/mtree/article/travel-a-recreation/does-your-car-smell-funny
Here is what the proper URL structure should look like:
http://staging.boardroomcorp.net/content/article/travel-a-recreation/does-your-car-smell-funny
Is it possible to modify your code base to make this adjustment? Please advise.
Thanks,
Jeff Porper
Web Developer
Boardroom, Inc.
Accepted Answer
0
very good, thanks.
the problem is simply the "Itemid" which in your links is set (and in ours, its not)
this can be easily solved just by modifying a line in the PHP plugin file. if you're ok modifying it, here it goes:
on file /plugins/contentstats/com_mtree/com_mtree.php, on line 389, you will see this:
you need to replace it for:
this way we are setting the Itemid on the URL.
let me know if that works or you face any trouble..
the problem is simply the "Itemid" which in your links is set (and in ours, its not)
this can be easily solved just by modifying a line in the PHP plugin file. if you're ok modifying it, here it goes:
on file /plugins/contentstats/com_mtree/com_mtree.php, on line 389, you will see this:
' CONCAT("index.php?option=com_mtree&task=viewlink&link_id=", s.link_id) as item_link ' .
you need to replace it for:
' CONCAT("index.php?option=com_mtree&task=viewlink&link_id=", s.link_id,"&Itemid=184") as item_link ' .
this way we are setting the Itemid on the URL.
let me know if that works or you face any trouble..

Your Reply

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »