Pretty URL show always the latest ALIAS (even if other language)

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
Connie

Pretty URL show always the latest ALIAS (even if other language)

Post by Connie »

Hi!
I installed cmsms-mle-1.4.1-full in the root
I configured in config.php like this:

Code: Select all

$config['assume_mod_rewrite'] = true;
$config['page_extension'] = '.html';
$config['internal_pretty_urls'] = false;
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';
I use in .htaccess:

Code: Select all

RewriteEngine On

RewriteCond %{QUERY_STRING} http\: [OR]
RewriteCond %{QUERY_STRING} \[ [OR]
RewriteCond %{QUERY_STRING} \] [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) 
RewriteRule ^.*$ - [F,L] 

# CMSMS Rewriting
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/(.*)$ index.php?page=$2&hl=$1 [QSA]

standardlanguage is german

When I edit the page-alias in the german version of an article, I get the URL:

Code: Select all

http://www.a-o-m.net/de_DE/Baumaschinen/Verkauf.html
but this german page-alias overwrites the english page-alias or the russian page-alias

when I edit the english one, the german page-alias is overwritten by that:

Code: Select all

http://www.a-o-m.net/de_DE/Baumaschinen/Sales.html
I tested all combinations of

Code: Select all

Show from DEFAULT_LANG if current lang is not ready
and

Code: Select all

 Force initial DEFAULT_LANG:
, but it is never ok


what is wrong? You may test it at

www.a-o-m.net/index.php (which is in statu nascendi...)

Please help us out!

Connie



----------------------------------------------

Cms Version: 1.4.1

Installed Modules:

    * CMSMailer: 1.73.14
    * FileManager: 0.4.1
    * MenuManager: 1.5.1
    * ModuleManager: 1.2.1
    * News: 2.8.2
    * nuSOAP: 1.0.1
    * Printing: 0.2.5
    * Search: 1.5.1
    * ThemeManager: 1.0.8
    * TinyMCE: 2.4.5
    * FCKeditorX: 1.1.0
    * Uploads: 1.3.1
    * SimpleViewer: 1.0
    * FormBuilder: 0.5.3
    * SimpleGoogleMap: 1.1


Config Information:

    * php_memory_limit:
    * process_whole_template: true
    * max_upload_size: 20000000
    * default_upload_permission: 664
    * assume_mod_rewrite: true
    * page_extension: .html
    * internal_pretty_urls: false
    * use_hierarchy: true


Php Information:

    * safe_mode: Off (Nein)
    * phpversion: 5.2.0-8+etch10
    * memory_limit: 32M
    * max_execution_time: 30
    * gd_version: 2
    * session_save_path: Keine Prüfung, da die Beschränkung "open basedir" aktiviert ist


Server Information:

    * Server Api: apache2handler
    * Server Db Type: MySQL (mysql)
    * Server Db Version: 5.0.32


----------------------------------------------
alby

Re: Pretty URL show always the latest ALIAS (even if other language)

Post by alby »

Connie wrote:

Code: Select all

$config['page_extension'] = '.html';

Code: Select all

RewriteRule ^([^/]+)/(.*)$ index.php?page=$2&hl=$1 [QSA]

I think that it's not correct for .html
Try with $config['page_extension'] = ''; or change RewriteRule

Connie wrote: when I edit the english one, the german page-alias is overwritten by that:
Search in forum for this but alias is indipendent from languages because it's a internal variable for retrieve the right page
You must use generic words for this

Alby
Connie

Re: Pretty URL show always the latest ALIAS (even if other language)

Post by Connie »

Alby,

ok, I fixed the extension, now set to "empty", but:

what do you mean with generic words?

I understand a URL like a title, it should contain words from the content of the specific page, so

german:  Kundendienst
english:  support
russian:  uslugi 

do you mean, we should set one alias like  "Kundendienst-support-uslugi" ?

I think this one alias for all languages is a flaw... (do not misunderstand me), because everybody would expect that the alias is specific for each language...
so what to tell my clients now  :-\

but first: have a good night and a good weekend
ravonet
Forum Members
Forum Members
Posts: 59
Joined: Fri Jan 11, 2008 12:04 pm

Re: Pretty URL show always the latest ALIAS (even if other language)

Post by ravonet »

Hi Connie,

Did you find a solution for:
german:  Kundendienst
english:   support
russian:   uslugi 
I am having exactly the same problem right now.
Connie

Re: Pretty URL show always the latest ALIAS (even if other language)

Post by Connie »

No, I did not

I did not follow that topic any further, it's on my list of the CMSMS mysteries (or: "why some problems will never be solved" or "why some modules will never be updated")

I like CMSMS very much, I love to use it, but some problems or bugs are as sticky as asphalt..  :'(
alby

Re: Pretty URL show always the latest ALIAS (even if other language)

Post by alby »

This is CMSMS design (at least for 1.X series)
You can retrieve a page for ID or for Alias:
index.php?page=ID
index.php?page=ALIAS
infact alias (same ID) must be UNIQUE

This change means rewrites a bunch of code .... and I cannot put that effort in code and (especially) in testing

Alby
alby

Re: Pretty URL show always the latest ALIAS (even if other language)

Post by alby »

abulafia wrote: questa soluzione soddisferebbe gli utilizzatori...non so quanto gli sviluppatori.
It's important (not in International forums) write in English, you have to strive as I do myself with my brilliant English  ;D

Well, how many users use mod_rewrite?
30%-40% (I don't use because nowadays search engines know how to work with normal sintax and some modules work well with normal sintax only) and other 60%-70%?
In this case you must change sintax with ID only: index.php?page=ID and this can break anything from modules to tags
If modules/tags live on API functions (hopefully) then it's necessary to rewrite many API functions (GetURL, Form functions, retrieve from URL, ...) but who test in all conditions?
And this change will be so great that yes that would be a real fork that live for his own but I personally do not have strength, time and desire
I understand that it's good and I'll make a FR for 2.0 but beyond that ....

Alby
Locked

Return to “[locked] CMSMS MLE fork”