I think this is a realatively easy question to answer, because Jan figured out the solution to a very similar problem. Posted here: viewtopic.php?f=1&t=3746
What I am trying to do is have the search results link to a page that displays the side menu.
Right now when you click any of the search results it links to a page with the gallery, but the side menu is gone. If I look at the URLs, I am missing the itemid.
Here's an example of a gallery page with the menu when viewing the gallery. This is what I am trying to achieve:
http://www.oliphantstudio.com/index.php ... &Itemid=5
This is the URL of where the search results send you - same gallery, but the sidemenu does not display
http://www.oliphantstudio.com/index.php ... =54:autumn
See how it is missing the &Itemid= ?
The file I have been working with is plugins/search/phocagallery.php
I believe the line that generates the link for the results is
Code: Select all
if(isset($list2))
{
foreach($list2 as $key => $item)
{
$list2[$key]->href = JRoute::_('index.php?option=com_phocagallery&view=category&id='. $item->id );
}Code: Select all
$list2[$key]->href = JRoute::_('index.php?option=com_phocagallery&view=category&id='.JRequest::getVar('Itemid', 1, 'get', 'int'));Thank you! Thank you! Thank you!


