Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2026-05-08 10:54:51

Barsinister
New Member
Registered: 2026-05-08
Posts: 1

How to...Change the front page to be static

Hi. Funny thing…on the landing page, Home and Articles are exactly the same. They both display all of the articles. Is there an easy way to prevent the landing page from displaying all of the articles and only displaying one specific article? Or, a way to get the front page to display some html/php that isn’t an article?

Offline

#2 2026-05-08 11:57:10

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

Re: How to...Change the front page to be static

Hi and welcome!

Yes, probably the most straightforward way is to create a separate page template for the home page that you can then design as you like.

If you’re starting from the default theme:

  • Visit Presentation › Pages and duplicate the default template under a new name, for example home.
  • Now visit Admin › Sections, click on the default section and change Uses page to home. For the moment nothing has changed, but…
  • Go back to Presentation › Pages, make sure home is selected from the list and you can edit your page template as you like.

To show just a particular article, make a note of the article’s id number, and the use the following on your page template where you want it to show:

<txp:article_custom id="3" form="default" />

here with article #3 and the default form (you can find that under Presentation › Forms).

Obviously, there’s much more you can do, but that’s the basic principle.


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB