Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-26 22:22:56

relix
New Member
Registered: 2005-10-05
Posts: 3

Intro-Page before frontpage

I would like my site to have an “intro-page”, where the users click on a link to go to the homepage. The intro-page will set a cookie so that it will only be shown once. So that if users go to www.mysite.com it shows the intro page instead of textpattern’s homepage like it does now.

Now how do I do this? I’ve thought of changing textpattern’s index.php to index_post.php and naming the intro-page index.php, but textpattern doesn’t seem to accept index_post.php as it’s index-name (it gives a 404 error). I tried editing the .htaccess to search for index_ante.php (the intro page) before index.php, but that doesn’t work either. I can’t just edit index.php and add the intro-page in there in an if-then statement, so that if the cookie is set, it executes the textpattern code, else it shows the intro-page, because then people that have cookies-disabled will be stuck on the intro-page.

Any other ideas I can use?

Offline

#2 2005-10-26 23:34:39

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: Intro-Page before frontpage

You could use the txp start page (index.php) as your splash page and setup another section for the real “home” page. On subsequent visits you can then just send them on to the second page based on the cookie.


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

Board footer

Powered by FluxBB