I don't know about the current state of the catalog but catalog uses "items" in the url which is already an auto_item. So Contao already recognized that. You can try and edit ModuleCatalog.php (NOT UPDATE SAFE) and prefix every function that has "$this->get('items')" in it with the following code:
Code:
// Set the item from the auto_item parameter
if ($GLOBALS['TL_CONFIG']['useAutoItem'] && isset($_GET['auto_item']))
{
$this->Input->setGet('items', $this->Input->get('auto_item'));
}
You probably have to change the code somewhere to make sure the "items" part is not added to any URL's, but I am not really sure where in the code that is. You can find it easily though. Contao core uses this to decide whether or not to add the parameters:
Code:
($GLOBALS['TL_CONFIG']['useAutoItem'] ? '/' : '/items/')
One note: if you need to add another parameter as an auto_item you can do that via a config.php:
Code:
$GLOBALS['TL_AUTO_ITEM'][] = 'youritem';
(and these parameters need to be handled by every function that retrieves that specific get parameter in the same way as I showed above.)
Bookmarks