Elxis CMS Forum
Support => General => Topic started by: Luca on February 15, 2013, 19:22:04
-
Help here is appreciated, thanks...
from
https://forum.elxis.org/index.php?topic=7245.msg46758#msg46758 (and from documentation, too):
Elxis transforms Elxis URIs into full URLs by applying the site URL, standard or custom routing settings, site SSL/TLS status and current (or forced) language.
So hello.html can be converted into any of the following (depending on the status):
http://www.example.com/hello.html
http://www.example.com/el/hello.html
https://www.example.com/hello.html
http://www.example.com/whatthefuck/hello.html
https://www.example.com/de/whatthefuck/hello.html
http://www.example.com/inner.php/el/hello.html
etc...
For me is doing well apart for the article I set as default route (frontpage) when I click on Home or Logo after selecting the second language ??? giving a 404 error:
content:hello.html
By clicking the lang flag the page appears (www.domain.com/lang/hello.html)
Multilinguism is enabled, translations were done, language published...
I am surely missing something
[UPDATE]
I'm experiencing also another issue, maybe related to the above.
I want a module to show content at the homepage only and I assign to it, i.e., the "Home" in mainmenu. It doesn't show up.
It does, if I assign it to ALL... but it obviously is not what I want to achieve ???
I repeat it: I have an autonomous page set to show as default route.
2 installations, same issues.
-
Anybody? @Datahell?
It's only me (serverside), is this the standard behavior? is it a Nautilus bug?, ...?
-
I can't check it now as I am away.
Send me a PM to check it later, else I will surely forget it :-)
-
Checked.
Autonomous pages as front-page work fine for the main language but we get an error 404 if you change language.
So, it is a bug!
I will try to fix it and reply you again later. Please wait.
-
I'll wait... with pleasure!
-
Fixed! (I think the time took me to fix this bug is a world record :D )
There are several ways to fix this problem, here is what I did on Elxis core.
Open file: includes/libraries/elxis/uri.class.php
Go to line 199
add below:
$this->has_slash = false;
After the modification you will have this:
if (!$parts || (count($parts) == 0)) {
$this->has_slash = false;
if (defined('ELXIS_ADMIN')) {
Thanks for the bug report!
-
Thank you @Datahell and compliments for the new world record performance :)
Happy to help.
This resolves the first part.
The module assigned on the "Home" links in the menus still doesn't show up...
Luca
-
Oh I forgot that.
I will see that later. I am busy now with something else.
-
Γαμώ την Ινδία μου μέσα ;D
I am back!
Without checking: I think that the problem will be solved if you assign the module to the autonomous page too. Try it.
"Home" is not a real link as it doesn't contain the information of the autonomous page. But if you create a real link to the autonomous page and assign your module there it will work as a charm. If you want this link not to be visible you can have it in a hidden menu.
-
Γαμώ την Ινδία μου μέσα ;D
LOL!
mmm. If I'm not wrong, once assigned the autonomous page to the default route, it doesn't become available in the list 'module assignement'...
"Home" is not a real link as it doesn't contain the information of the autonomous page.
Yes, it's not a real link. But shouldn't it "know" that he is the "default route" (to say so)? :)
Anyway, yes, the module assigned to be displayed on the other single aut.s pages shows correctly. I can confirm. As far as they are not the default route... :)
Have a good stay in Ινδία ;)
-
If you used the google translator I must inform you that the translation it gives to the above phrase (f... me in India) is absolutely wrong! :o
In fact, this phrase cannot be translated in other languages. And I didn't said that for you but for an Indian pressing "friend".
-
;D
Yes, I did used gle transl.r LOL
Anyway, no matter what you are doing there (wherever you are :)), have fun! Fun is good!
I know you care much about SEO and would like to come back to you with a related 'issue' to this thread.
These are the URLs brought by the language flags. I've noticed in SE results that the page set as frontpage is also being crawled with its real URL, thus creating a potential double content issue? I don't know if Nautilus is already dealing with this, perhaps with canonicals? (didn't noticed).
Anyway, I'm blocking from robots any translation languages for the same fear, but this would cut some promoting efforts.
How do you see these, please?
-
If you create a real link to the autonomous page and assign your module there it will work as a charm. If you want this link not to be visible you can have it in a hidden menu.
Summing up, thank you for this idea. It is working ok this way.
Luca
-
Γαμώ την Ινδία μου μέσα ;D
Aaaaaa hahahaha!
If you used the google translator I must inform you that the translation it gives to the above phrase (f... me in India) is absolutely wrong! :o
Aaaaaa hahahahahahahahaha!
[Να σε καλά με έκανες και γέλασα!]
-
I know you care much about SEO and would like to come back to you with a related 'issue' to this thread.
These are the URLs brought by the language flags. I've noticed in SE results that the page set as frontpage is also being crawled with its real URL, thus creating a potential double content issue? I don't know if Nautilus is already dealing with this, perhaps with canonicals? (didn't noticed).
Anyway, I'm blocking from robots any translation languages for the same fear, but this would cut some promoting efforts.
How do you see these, please?
Never mind, thank you. I've found this https://forum.elxis.org/index.php?topic=7266.0
-
@datahell
Hello datahell,
is there, please, a way to make the language flag's URLs for the frontpage ending just right as the Home menu links do (domain.tld/lang/)?
Thank you,
Luca
-
Isn't this already happening? ???
-
Hello @datahell, how are you? I hope fine!
Isn't this already happening? Huh
Indeed... ...???...
I'm pretty sure (cannot guarantee, though) that before the upgrade it was ok...
In order to verify this, I ought to downgrade from rev. 1452 to 4.0 ...
I've compared the files before and after the upgrade, before posting, and I didn't managed to find the "clue". So that I'm asking.
It is clear that, if anybody else had had this "issue", then it is my problem...
Cheers,
Luca
-
Now, I'm getting a little confused: no matter which autonomous page I set as frontpage (Home in menus), it is rendering the same article (which it is indeed the one I want).
At this point, I think that the issue is only on my side, maybe I had assigned that article somewhere in order to appear as the frontpage but I'm not able to find it... LOL!!! ???
Elxis link* is set to content:/
Luca
-
The frontpage in Elxis 4.x is set on Elxis configuration, not in menus (as it was in 2009.x).
The default frontpage is content:/ which equals to the frontpage grid as you have designed it in Elxis administration. Any other values doesn't use the frontpage grid system.
To make an autonomous page your site's frontpage, set as frontpage in Elxis configurtion something like that: content:mypage.html
-
Thank you @datahell.
Yes, I was missing that. Sorry!
Then, I don't understand why the language flags still have the URL mydomain.tld/myarticle.html mydomain.tld/lang/myarticle.html ?
Luca
-
Because this is the real URL of the page...
In Elxis configuration you set what you want to be displayed in frontpage. It doesn't change the site's structure. The page will be visible in frontpage and also in its original position.
My recommendation is to use the frontpage grid in frontpage.
You can create a custom module and show it there with any content you what as you would do with an autonomous page.
-
Thank you very much. I'll do that. Cheers!
Luca