Elxis CMS Forum
Extensions => Components => Topic started by: Davide on April 25, 2012, 01:34:42
-
HolĂ !
i was thinking to change the rewritten seopro path.
http://www.petbooking.it/reservations/vicenza/von-casa-falco-a-vicenza.html
i'd like to change /reservations/ into > what is defined into "accomodation type" after > translation.
I was thinking that the solution was changing on seopro.com_reservations.php
line 31-45
if (!defined('IOSRESBASE')) {
global $_VERSION;
if ($_VERSION->RELEASE > '2008') {
define('IOSRESBASE', 'reservations');
} else {
define('IOSRESBASE', 'com_reservations');
}
}
where is written reservation, I initially put only $accid but this is only a category without an unique id accomodation type defined in the database and is not mentioned that before has to be translated.
Next i was thinking to use something similar to:
$resmaster->lng->ACCOMMTYPES.'/'.$resmaster->lng->accid;
defining it first into "any_language.php" with
public $ACCOMMTYPES = 'Pensione%20Per%20Cani%20e/o%20Gatti';
and finally using
if (!defined('IOSRESBASE')) {
global $_VERSION;
if ($_VERSION->RELEASE > '2008') {
define('IOSRESBASE', 'ACCOMMTYPES');
} else {
define('IOSRESBASE', 'com_reservations');
}
}
yes... is not working... any suggestion?
-
Just take a look to this relative message : here (https://forum.elxis.org/index.php?topic=5278.msg35860#msg35860) for eblog component.
Important: Don't use a space character for this new seo base. For example : change 'accomodation type' to 'accomodation-type'
-
The SEO PRO base name should contain only alphanumeric latin characters without spaces and only the symbols - and _ are allowed. Also your code is wrong. You use a PHP variable as PHP constant. Don't change SEO PRO base name depending on the language. You may end up with unexpected results!
-
Don't change SEO PRO base name depending on the language. You may end up with unexpected results!
don't you think that would be better indexed if you see sitename.xx/kind-of-accomodation/location? The system will be also obliged to create multiple page.
What would be a bad result from your point of view?
Thank you for your suggest and reply.. ;)
-
Inexperienced users can create bad results from very simple things. You may end with non-resolving URLs, URLs overlapping, confusion in Elxis SEO resolver and validator, multiple URLs for the same page, payment gateways and redirection issues and many many more. URLs should be solid and unique, yours are not. If you do it properly it will work. But most probably we will surely forget to update something. Elxis has 6500 files! You can do what ever you want, it is your choice, but I warned you...
-
Elxis has 6500 files! You can do what ever you want, it is your choice, but I warned you...
okok you win! i don't have enough time in my life... ;)