Hi,
USE PLEASE urlcleaner, I'LL LEAVE HERE THIS SOLUTION ONLY FOR UNEXPECTED NEED OF HARDCODING.
I have been working on that for three hours. Last comment in this post helps me a lot to solve this problem.
To replace 'items' for whatever you want you need:
1) To find the files:
root/system/modules/catalog/CatalogExt.php
root/system/modules/catalog/ModuleCatalog.php
root/system/modules/catalog/ModuleCatalogEdit.php
and in each of them replace all instances of "items" with "anythingIWant"
2) Find the file root/.htaccess and insert on first line (before any code)
Code:
RewriteRule ^(.+)/anythingIWant/(.+).html$ %{DOCUMENT_ROOT}/$1.html?items=$2 [L]
3) Set in your contao administration->settings mod_rewrite to enabled (check the checkbox)
:!: NOTE: :!:
1) You need mod_rewrite enabled on your server
2) Everything in quotes refers to exact string in file, so find all instances of "items" without quotes and so on
3) Replace "anythingIWant" with any string which can be passed to url, I strongly recommend something in format like "dvd" or "dvd_collection"
4) The final URL will be like:
Code:
http://www.domain.xy/catalogAlias/anythingIWant/alias.html
Bookmarks