Start website with index.html containing intro and language choice

General questions about CMSimple
Post Reply
Nicky
Posts: 164
Joined: Sun Feb 08, 2009 9:50 am
Location: Antwerp, Belgium

Start website with index.html containing intro and language choice

Post by Nicky » Mon Mar 11, 2019 5:59 pm

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?

olape
Posts: 2731
Joined: Fri Mar 13, 2015 8:47 am
Contact:

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

Post by olape » Mon Mar 11, 2019 6:43 pm

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.
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

Nicky
Posts: 164
Joined: Sun Feb 08, 2009 9:50 am
Location: Antwerp, Belgium

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

Post by Nicky » 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.

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

Nicky
Posts: 164
Joined: Sun Feb 08, 2009 9:50 am
Location: Antwerp, Belgium

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

Post by Nicky » Tue Mar 12, 2019 5:46 am

Thanks to Olape by the way!

lck
Posts: 2963
Joined: Wed Mar 23, 2011 11:43 am
Contact:

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

Post by lck » Tue Mar 12, 2019 9:21 pm

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).
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

lck
Posts: 2963
Joined: Wed Mar 23, 2011 11:43 am
Contact:

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

Post by lck » Tue Mar 12, 2019 9:24 pm

@PHP-Cracks: Could userprelude.php be used for something like this?
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

olape
Posts: 2731
Joined: Fri Mar 13, 2015 8:47 am
Contact:

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

Post by olape » 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.
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

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

Post by cmb » Tue Mar 12, 2019 10:09 pm

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).
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply