Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-06-05 21:15:21

KeithR
New Member
Registered: 2008-06-05
Posts: 2

Using my own template?

Hello everyone!

This is obviously my first post in this forum. I could not find a post that would answer my questions so I need to ask for it. I’m revamping my Web site from scratch and I’m starting with the template layout. I like how the Textpattern admin interface works, lean and straight to the point. I have been searching here as well online elsewhere on creating your own template and how to implement that template into the Textpattern scheme.

What documents should I start out with and where to find them?

I have a nice template that I want to use but I need to make sure that I can use it with Textpattern. Thank you.

Keith

Offline

#2 2008-06-05 22:33:49

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Using my own template?

You say a nice template, so I take it you are referring to a theme – the look of your site? In that case you need to:
  • look at the default page template and archive page template and note the html that is used, the names of the divs etc.
  • You also need to look at the output of the page because there will be some html that is output by txp:tags like for search and list of sections etc.
  • After you know the html that is used you can then adjust your template css to match.
  • Then replace the default css with your css.
  • You should be getting nearer now and just need to style some fine details and the like.
    If that sounds like a lot of trouble, you could look at textgarden or txp resources and find a template near to yours. Install that (instructions will be with it) then adjust it to be exactly like yours.

Hope that helps


BB6 Band My band
Gud One My blog

Offline

#3 2008-06-06 16:02:29

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Using my own template?

I thought there was an article about adding Textpattern to your existing site either on TXPQ or on textbook but I couldn’t find it. Maybe I was dreaming?


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#4 2008-06-08 07:21:39

KeithR
New Member
Registered: 2008-06-05
Posts: 2

Re: Using my own template?

Thank you zero, that is what I meant, my theme. Also thank you for pointing me in the right direction on where to start, so that I may dissect the default page template and continue with my project.

Cheers!

zero wrote:

You say a nice template, so I take it you are referring to a theme – the look of your site? In that case you need to:

  • look at the default page template and archive page template and note the html that is used, the names of the divs etc.
  • You also need to look at the output of the page because there will be some html that is output by txp:tags like for search and list of sections etc.
  • After you know the html that is used you can then adjust your template css to match.
  • Then replace the default css with your css.
  • You should be getting nearer now and just need to style some fine details and the like.
    If that sounds like a lot of trouble, you could look at textgarden or txp resources and find a template near to yours. Install that (instructions will be with it) then adjust it to be exactly like yours.

Hope that helps

Offline

#5 2008-06-08 10:57:53

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Using my own template?

Glad I could help, Keith!

Matt, are you thinking of hcg_templates?
This is great for importing themes designed for Textpattern – pages, forms and styles – but won’t work with non-txp themes.


BB6 Band My band
Gud One My blog

Offline

Board footer

Powered by FluxBB