Page 1 of 1

Start website with index.html containing intro and language choice

Posted: Mon Mar 11, 2019 5:59 pm
by Nicky
Full site in 3 languages is ready, but I need to put an intro (full screen image with 3 flags to choose language).

When i put index.html on the server, language page shows up as it should.

Clicking a flag should go to: mydomain.com/?Page1 (obviously an url for cmsimple). However, nothing happens and the intropage remains. The link mydomain.com/index.php/?Page1 works, but I don't want the "index.php" showing up on every url of the site.

Any ideas how to work around? Maybe some .htaccess code could solve this?

Re: Start website with index.html containing intro and language choice

Posted: Mon Mar 11, 2019 6:43 pm
by olape
Also with htaccess you will not be able to prevent this. The server obviously accesses index.html first, then index.php. Otherwise your construction would not work.
But for the second languages this shouldn't be a problem. This should work. Surely you didn't put index.html there.
One solution would be to create your language choice in the default language with your own template as start page.

Re: Start website with index.html containing intro and language choice

Posted: Tue Mar 12, 2019 5:37 am
by Nicky
Solved as follows: I made own template for cmsimple just containing a fullscreen image and 3 language flags.

Then on website in the default language made a new page ‘home’, hidden from menu and using new template just for that page.

Cm”simple” but perfect solution for this issue :D

Re: Start website with index.html containing intro and language choice

Posted: Tue Mar 12, 2019 5:46 am
by Nicky
Thanks to Olape by the way!

Re: Start website with index.html containing intro and language choice

Posted: Tue Mar 12, 2019 9:21 pm
by lck
Nicky wrote:
Tue Mar 12, 2019 5:37 am
Solved as follows: I made own template for cmsimple just containing a fullscreen image and 3 language flags.

Then on website in the default language made a new page ‘home’, hidden from menu and using new template just for that page.
Great. Another possibility is described here (Popup window with hi_fancybox).

Re: Start website with index.html containing intro and language choice

Posted: Tue Mar 12, 2019 9:24 pm
by lck
@PHP-Cracks: Could userprelude.php be used for something like this?

Re: Start website with index.html containing intro and language choice

Posted: Tue Mar 12, 2019 9:30 pm
by olape
lck wrote:
Tue Mar 12, 2019 9:24 pm
@PHP-Cracks: Could userprelude.php be used for something like this?
I don't think that's really working. That would be included with every page call. But that is not supposed In this case.

Re: Start website with index.html containing intro and language choice

Posted: Tue Mar 12, 2019 10:09 pm
by cmb
olape wrote:
Tue Mar 12, 2019 9:30 pm
lck wrote:
Tue Mar 12, 2019 9:24 pm
@PHP-Cracks: Could userprelude.php be used for something like this?
I don't think that's really working. That would be included with every page call. But that is not supposed In this case.
Indeed.

It seems to me that Nicky's current solution is quite apt for this use-case. It could be sensible to add hidden start pages with language selection also for the secondary languages (i.e. not only for the primary language).