Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-09-14 12:59:49

squidink
New Member
Registered: 2008-09-14
Posts: 5

Textpattern templates? info for new commer

Hello,
Since I heard good things a bout Textpattern, I decided to give it a try.
Before digging in it to figure how I may seamlessly integrate it with my other applications I would like to know how the “skin” is generated?
Is it tpl based, if so where is its location and what is the dir or file name?
Scripting and coding is not a problem, but (ok.. at first glance) I cannot figure how it’s done
Any info more than welcome
Thanks

Offline

#2 2008-09-14 13:24:25

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Textpattern templates? info for new commer

There are no skins in TXP. Instead, you are free to create your own templates and styles. The “page” is the template, and “styles” is where you store your CSS. In sections, you select which page and style you wish to use. Very easy :-)

Offline

#3 2008-09-14 13:25:22

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Textpattern templates? info for new commer

I should add you can just create or use your current styles/markup, then its just a question of adding the TXP tags into the page to generate your content.

Offline

#4 2008-09-14 13:31:43

squidink
New Member
Registered: 2008-09-14
Posts: 5

Re: Textpattern templates? info for new commer

Thank you
that was fast and.. a Sunday!

Great I understand, next: I am on my way to discover how it works;
time for a “post mortem”

Offline

#5 2008-09-14 13:39:32

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Textpattern templates? info for new commer

No problem! There are a few tips you can use to make your site development a little quicker – one of the best tips is to use “forms” to store code snippets, for example the page header/footer.

Once you have created the form, use output form in the page to display your form contents, like so:

<txp:output_form form="your_form_name_here" />

Offline

Board footer

Powered by FluxBB