Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-03-13 09:35:46

oberheimer
New Member
Registered: 2007-12-25
Posts: 3

is it hard to code a template if im ok with html and css?

I have coded a few site before but only html and css so have no idea about php, just the basics

Offline

#2 2009-03-13 10:30:23

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: is it hard to code a template if im ok with html and css?

Hi oberheimer,
You don’t need to know any php to create templates for txp. All you need is to learn some of txp tags which you can use in an xml like structure.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-03-13 12:39:30

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: is it hard to code a template if im ok with html and css?

I can advice you to look at templates at textplates.com – with this step you will get acquainted with txp template model faster, i think


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#4 2009-03-13 16:36:52

nemoorange
Plugin Author
From: Washington DC
Registered: 2006-11-29
Posts: 90
Website

Re: is it hard to code a template if im ok with html and css?

I think you’ll find it quite easy! Two and half years ago, I first got into Textpattern. My only previous templating experience was with Blogger. From what I remember, it wasn’t that hard getting started.

Here’s a brief introduction:

If you’ve only worked hard coding .html files in the past, you’ll find the Pages module to be the easiest to understand. Each page can be structured exactly like an html file. The next step for templating, is going to understand how the Textpattern tags and Forms work. In the beginning, the hardest thing for me to understand was Forms. The best way to think of them is as code snippets. Any time you use the same bit of code in several different Pages, you’ll want to use a form instead. Txp tips provies a great example of a simple footer form.

Once you’re happy with a couple Pages, you’ll want to create Sections, and select certain Pages to use with those sections. Each of those Sections can now have a Style selected for its page. Style is basically just the CSS.

From there, you’ll want to think about how Articles to be displayed, which brings you back to forms and pages. It can seem very complicated at first, but once you see how the different parts function together, I think it will click right in place.


Txp admin themes | dropshado.ws – a blog for design noobs like me

Offline

Board footer

Powered by FluxBB