Page 1 of 1

Stupid automatic suffix to aliases :(

Posted: Sat 1. Jul 2006, 20:45
by Tomasahl
This is a pretty stupid thing I find. I try to create a new"Home"-level under the "root"-level (see my other posting on multilanguage solutions and the unsolvable crap I have encountered).

So i tried to do as I got an advice to do - to put the swedish version right in the root without any refresh. And it worked, but the english version disappeared and still no HOME-link in the menu.

So I thought "better to move it back again so I at least can use both languages" - and not to my surprise there was no way in hell to get the alias in the "home" directory to be "sw-homepage". Noooo!!!
By some idiotic reason I get an automatic suppix, so it is called "sw-homepage_swkj" and so on. So I delete and try again ... I get something like :"sw-homepage_blahblah".

I feel I am only guessing now and don't know what i am doing. To get it to work in some way I now changed the "sw" to "se" instead. But that can't be the "real" solution to avoidingthese suffixes.

Posted: Sat 1. Jul 2006, 21:33
by culda_a
Hi
By some idiotic reason I get an automatic suppix, so it is called "sw-homepage_swkj" and so on. So I delete and try again ... I get something like :"sw-homepage_blahblah".
You get that becouse you have another alias that is identic with the new that you have created

for exemple

for eng language

en_about

de_about

like that it shoul work but if you have

en_about

en_about

to the last one after you make save it will automaticly creat tha sufix like

en_about

de_about_xyj

normaly you have to be carefully not to have 2 tha same check the prefix to the second language not to be the same like the first.

try to use this format
en_about

de_about
not
en-about

de-about
Like this is the original format from Pepe

Posted: Sat 1. Jul 2006, 22:05
by Tomasahl
Thanks for your answer, but actually no i have not.But I guess then that it is something that is saved i phpwcms somewhere (in the cache or in the sqldatabase?) so i can delete that and then get it right? The problem came because i wanted to make a new alias that had the same name as one i had deleted - so it ought not to be a problem.
Anyway - thansk for answerring.

Posted: Sat 1. Jul 2006, 22:22
by pico
Hi

the Problem comes from a used and deleted Alias - the Database entry is not deleted by deleting a Structurlevel, its just marked as trash. To fix this, goto your Database with phpMyAdmin and delete the Records where trash=9

Posted: Sat 1. Jul 2006, 22:33
by DeXXus
Tomasahl wrote:Thanks for your answer, but actually no i have not.
I'm afraid, you're right, that once you have used and deleted it... it is stored already and compared against when you try to re-use it! So, "existing" -or- "already used"!:wink:
Tomasahl wrote:But I guess then that it is something that is saved i phpwcms somewhere (in the cache or in the sqldatabase?) so i can delete that and then get it right?
Yes, inside table phpwcms_articlecat -and- phpwcms_cache (if caching is enabled) are when they are "live". :D

Posted: Sat 1. Jul 2006, 23:23
by culda_a
Right or that :wink: in a more technical explaination and elaborated