Mosets URL modification

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.

Accepted Answer

Monday, July 01 2013, 07:57 PM - #Permalink
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:

' 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.. :)
The reply is currently minimized Show
Responses (5)
  • Accepted Answer

    Saturday, June 29 2013, 10:45 AM - #Permalink
    0
    hello,

    are you using any SEF component for Joomla? which one?
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, June 29 2013, 02:14 PM - #Permalink
    0
    Nope, just native Joomla 2.5.9 SEF capabilities with .htaccess.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, June 30 2013, 11:39 AM - #Permalink
    0
    ok. thanks. can you do this?
    disable SEF just for a moment, and please tell me how the non-SEF urls look like for the Mosets Tree pages.
    what version of MT are you using?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 01 2013, 01:06 PM - #Permalink
    0
    Here's a link to Mosets Tree article:
    http://dv02blpdev-clone1.boardroomcorp.net/index.php?option=com_mtree&task=viewlink&link_id=5584&Itemid=184

    When you hit that link, you see the article using the proper template as we do on our live site. We're using MT v 2.2.6
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 01 2013, 09:03 PM - #Permalink
    0
    Worked like a charm, thanks very much Germinal!
    The reply is currently minimized Show
Your Reply