Jump to content

URLs of Custom Field Click2Search on Detail Page


Steven Koontz

Recommended Posts

I can't believe I can't find info on this, so I'm going to post here. My Click2Search URLs are great everywhere BUT the listing detail page.

 

Here is a list page (C2S URLs are good):

http://videogamesreview.org/video-games/video-game-shops

 

Here is a detail page (C2S URLs are bad):

http://videogamesreview.org/video-game-shops/8-cardscodes

 

The documentation says to make the following modification in index.php in order to make the JReviews menu items active in the detail page:

$Itemid = JRequest::getInt('Itemid');

$menu = &JSite::getMenu();

 

// Repeat for every JReviews menu that needs to become active

if($Itemid == 211){  // example of the itemId of Joomla menu item

    $menu->setActive(143); // example of the itemId of JReviews menu item

}

 

I tried this and nothing changed. Why am I still getting the /component/jreviews part in the Click2Search URLs on the detail page?

Link to comment
×
×
  • Create New...