Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-06-26 14:00:08

xrussox
Member
Registered: 2006-03-05
Posts: 21

splash/intro pages (is this possible?)

one thing ive always enjoyed doing is making simple/silly splash pages every few days as an entry to my site. ive been having a hell of a time getting this to work with txp tho. i don’t want to lose my default page and i guess i dont know txp well enough to do a work-around

i want to have the splash page at www.myurl.org/index.php
so i was thinking i would just rename the default page to be home.php (which doesnt appear possible)

ok so then i was thinking i’d just move txp into a directory called home (myurl.org/home/)
but when i did that i was unable to control ../index.php because it was above the txp directory

is it possible to do what i am trying to do without ruining the functionality that makes textpattern great?
ive been tooling with this for MONTHS and im still unable to really get the catagories/sections working correctly………

meanwhile i setup a wordpress site for a friend in 20 minutes or less :(

there must be a way to have splash -> existing default “shuffling” of catagories -> each individual cat.

thanks for any help at all
russo

Last edited by xrussox (2006-06-26 14:46:05)

Offline

#2 2006-06-26 14:48:18

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,557
Website GitHub Twitter

Re: splash/intro pages (is this possible?)

Hum,
Maybe you create a page with a code of your splash and then use it with an about section, and the rest of the site use another page with the code of your usual site!

you can insert un page any php(using txp:php tag) or html code then you are free to do what you want!

Offline

#3 2006-06-26 17:04:10

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: splash/intro pages (is this possible?)

I didn’t completely understand what you want to splash page to contain. If it is not supposed to carry on any Textpattern-stuff, just some graphic or something like that, you could just use different directory index in your web-root? For example “directory index = splash.php” And maybe it’s even possible to have a redirect to some specific “Splash” section on your txp-installation. These both methods are available with .htaccess file you can have in your server root. Was this any helpful?

Offline

#4 2006-06-26 19:49:11

xrussox
Member
Registered: 2006-03-05
Posts: 21

Re: splash/intro pages (is this possible?)

no it would be txp stuff, it would just be simple graphics randomly made.. think “welcome to xxx” done randomly
for example testpilot has a collection of ones they made http://www.testpilotcollective.com/ (click and enter, its the “frontpage archive”)

im a believer of URL=UI as well, i didnt want to push my txp installation down a level into another directory… hmmm

guess im still not making mich sense huh?

Offline

#5 2006-06-26 20:04:53

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,125
Website GitHub

Re: splash/intro pages (is this possible?)

thinking aloud: you want to show a random graphic (or recent graphic), then click on it and get your frontpage.

2 options come to mind:

  1. make your default page to show only the image and begin your actual content in a section you call “home”. Define the default template to show your image with a link to domain.tld/home/. You could for instance make all your splash screens as articles in a section called “splashpages” and then either show only the most recent of those articles, or set the status of the one you want to show to “sticky”. Your default page might show: txp:article limit="1" status="sticky" form="splash" section="splashpages" (or something along those lines – quoted out of memory, pls check the correct notation). Your splashpages section could become an archive much like TPC’s.
  2. Spoof it on the default page using javascript and css layers. Make a div with the graphic in it, initially set to visible. Make a div with the normal content initially set to invisible. Use JS onClick to switch the visibility of the two divs. Pro: you need no sub-level, it’s all on your default page, Con: it uses JS.

TXP Builders – finely-crafted code, design and txp

Offline

#6 2006-06-27 15:21:26

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: splash/intro pages (is this possible?)

I too think the Jakob’s number 1 sounds like the best option for you. So you can control your splash content straight from the TXP. The .htaccess method would work as well, but you should add your splash things “manually” via ftp and there wouldn’t be any “sophisticated” way to control what is displayed and when.

Offline

#7 2006-06-27 17:37:26

xrussox
Member
Registered: 2006-03-05
Posts: 21

Re: splash/intro pages (is this possible?)

yeah definitely, thank you very much for the input. for the time being im going to just get the site up, then im going to worry about the frills :) definitely going to do option 1 thanks!!!

Offline

Board footer

Powered by FluxBB