Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » My html removed

#1 2006-09-16 17:51:11

ceetee
Member
Registered: 2006-09-16
Posts: 11

My html removed

This is my first encounter with textpress and I’m having difficulties with page templates. I created a new page for the front page and assigned it to a new section called front selected to appear in the index address. So far so good for the content, it displays the single article as expected.

There’s two problems though.

Parts of the default page are still showing, i.e. the search boxes, site title and links on the left. I’ve removed all the special tags except for the article tag, so I don’t know what’s wrong here.

I entered a two column table in the page/template and assigned a blank stylesheet for the time being. But when I look at the source code in view site it’s all been stripped out and replaced with divs. Er can’t I use my own html?

Last edited by ceetee (2006-09-16 17:54:33)

Offline

#2 2006-09-16 18:00:15

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: My html removed

If I understand correctly, you’ve created a new page/template for a section called ‘front’.
That template will be used if you visit: http://example.com/front

Setting “on front page?” to ‘yes’ for the “front” section, doesn’t mean that the page/template of that section is used for the page a http://example.com. What it means is that any articles you put in the ‘front’ section (http://example.com/front), also appear on the http://example.com page.

If you want to change the page/template for the real front page (http://example.com), then you have to change it for the section called ‘Default’.

Last edited by ruud (2006-09-16 18:01:14)

Offline

#3 2006-09-16 18:15:28

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

Re: My html removed

You can also assign your new page to section ‘default’ (presentation > sections).

Offline

#4 2006-09-16 18:17:01

ceetee
Member
Registered: 2006-09-16
Posts: 11

Re: My html removed

Thanks that was it.

Offline

  1. Index
  2. » Archives
  3. » My html removed

Board footer

Powered by FluxBB