Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » Splash Page

#1 2008-05-10 03:38:40

Paulk
New Member
Registered: 2008-05-10
Posts: 3

Splash Page

sorry if this has already been covered, i did a search and could not find anything that seemed to fit my particular scenario .. if you guys know of any articles that cover this please let me know!

my textpattern site has a splash page which of course is riding on the index.php file .. textpattern uses a differnt php file but when any links or buttons are clicked in textpattern it goes back to the index.php splash page

check it out:

http://www.kutyerthroat.com

how do i change which php file textpattern uses for sections, categories, articles, etc. .. is there one quick fix or change where i can type in a different php that textpattern uses?

i’m doing this site for a client so any responses asap are much appreciated! thanks!
-Paul

Offline

#2 2008-05-10 08:03:18

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: Splash Page

You create separate pages (templates) and assign them to the respective sections in Presentation > Sections

Or did I misunderstand you?

Offline

#3 2008-05-10 10:34:18

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Splash Page

Do you mean placeholders?
From a post of Dean from feb 05:
no more section placeholders

Maybe this article from the faq helps: How do I use a different page layout for each section?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#4 2008-05-10 10:46:01

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Splash Page

Ah, saw your site after posting ;p
Have you changed file contents already? Replace those files. And read some documentation.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#5 2008-05-11 18:39:09

Paulk
New Member
Registered: 2008-05-10
Posts: 3

Re: Splash Page

hm .. replaced file contents? i’m not quite sure what you mean .. ?

although i suppose i could create a different template that comes up as the default that just simply has the splash page on it .. hm

i just wish there was some simple function that tells textpattern that its not running on the index.php .. its running on a different php file, in the case of my website its “kutters.php” .. but whenever any of the links are clicked on in the menu, it kicks you back to like “/index.php/articles” .. which does not exist and so you simply see the splash page again .. basically none of the links work and all links lead to the splash page .. very frustrating, i just need it to say “/kutters.php/articles” etc. for all links in textpattern and it would work fine.

.. so what are these file contents you’re talking about?

thank you all for your responses btw!!

-Paul

Offline

#6 2008-05-11 20:50:26

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Splash Page

  1. Copy the default page template (‘copy page as…’) and name it for instance ‘txp_default’.
  2. Create a new section, e.g. ‘start’, and set it (and all other sections that were using page template ‘default’) to use ‘txp_default’ instead.
  3. Replace the contents of the original ‘default’ page template with your splash page’s content, and have it link to site.com/start/.

Note that you can’t use your /start/ page like the default TXP front page and display articles from all sections that have ‘On front page?’ set to ‘yes’, so if you want to display articles from other sections than ‘start’ you will have to use <txp:article_custom /> instead of <txp:article />.

Edit: it just dawned on me that you can of course also create a new page template named ‘splash’ (or whatever) and set section default to use that. Your txp pages can then keep using page template ‘default’…

Last edited by els (2008-05-12 00:56:17)

Offline

#7 2008-05-11 21:12:48

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Splash Page

Ah, Els, I’d almost suggested him to start from scratch ;)

For a txp beginner, I’d recommend writing one single line of text at the beginning of each form (presentation –> forms): “form = name of the form”. Apply the same to each page template (presentation -> page templates), but this time write “page = name of the page”, immediately after the opening body tag. This way you can tell, which element created which output. Keep font sizes small for these inserts, or it’ll blow your screen away in certain list situations.

And don’t try to hard-code links. Better: surround tags like f.i. <txp:title /> or <txp:excerpt /> with the permlink tag to make it a link to the article.

Last edited by uli (2008-05-11 21:17:52)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#8 2008-05-16 23:39:45

Paulk
New Member
Registered: 2008-05-10
Posts: 3

Re: Splash Page

worked like a charm guys .. took a little effort but it works great now!

thanks for the awesome support and fast responses!!!

-Paul

Offline

  1. Index
  2. » How do I…?
  3. » Splash Page

Board footer

Powered by FluxBB