Now that I finally have my migrated (from 1.1.9) VM site working as I want it (it's been a fun six weeks !) I return to one issue I put on the back burner.
With the VM Search module , if Joomla SEF is enabled I have this issue when searching.
- Special user logged in works
- Normal user logged in goes to 404 page
- Not logged in asks user to login
This is not a core problem as when I reverted to the standard vm_beez template on my test server it worked. The template I'm using is Shape5 - Vertex.
As soon as SEF is disabled it works.
So my thinking is if I can disable SEF for this module only, it might fix the issue.
Or if anyone has any other idea fire away.
For the time being the Search Module is disabled.
if it's only with that template then one assumes the mod is being over -ridden - try with it disabled (just change the folder name in the html folder)
Thanks for the input but I should have said.
There is no mod_virtuemart_search folder in the templates html folder so I don't think it's to do with an override ?
Hard to see then how a template can have the effect you mention.... there has to be something different between the two search routines
it just sends a GET with a few params
keyword xxxx
limitstart 0
option com_virtuemart
view category
OK I was wrong. It is happening with vm_beez.
I did test it before , as I said, and it worked but I guess I must have been logged in as admin / special.
So maybe this is a bug in VM ?
Question remains. Is there a way to turn off SEF for a module ?
QuoteQuestion remains. Is there a way to turn off SEF for a module ?
think far better to fix the problem - works perfectly on a std install with full SEF - so somethings no right on your site
checked conflicting aliases on ALL menu items (incl. hidden, unpublished, trashed et ) some thing is conflicting with the normal generated url
std url with full sef if - e.g. root menu to VM is products
products/search?keyword=shovel&limitstart=0&option=com_virtuemart&view=category
is yours?
if you change the form line in the search mod default template to
<!--<form action="<?php #echo JRoute::_('index.php?option=com_virtuemart&view=category&search=true&limitstart=0&virtuemart_category_id='.$category_id ); ?>" method="get">-->
<form action="<?php echo 'index.php?option=com_virtuemart&view=category&search=true&limitstart=0&virtuemart_category_id='.$category_id ; ?>" method="get">
you get
index.php?keyword=shovel&limitstart=0&option=com_virtuemart&view=category
OK I've fixed it.
Your talk of Menu items helped, though there were no conflicts.
I created a new menu item 'VM Search' of type VirtueMart ยป Category Layout in a hidden menu.
The id was 279 so I put 279 in Set ItemID of the search modules settings.
Now it works. Not sure why but it does :)