Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-08-10 12:14:32

stevieg_83
Member
From: Glasgow, UK
Registered: 2009-07-24
Posts: 14
Website

newbie questions

Hi folks,
My CMS of choice is Expression Engine usually. However, I’ve had some requests for a free CMS and I’ve heard great things about Textpattern.

It seems to be quite similar to EE in what I’ve seen so far, it has a better CP than EE IMO.

I always try and relate a new system to the way an existing system works so if I’m drawing incorrect parallels between TXP an EE, I apologise.

Obviously EE has the potential for multiple weblogs but from what I can make out TXP runs one main area for articles is that right? If that’s the case, how can I display articles differently? For example, taking a site I’m working on personally, I have an article for homepage text, I then have a series of articles on a work section that contains project information. How would I get my templates to differentiate between articles?

On other thing, EE has a switch parameter which essentially says you can apply multiple classes to various weblog entries, is there something similar available in TXP?

Thanks and regards,
Steven

Offline

#2 2009-08-10 12:31:53

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,391
Website GitHub

Re: newbie questions

Hi Steven,

Welcome to Textpattern :-)

stevieg_83 wrote:

How would I get my templates to differentiate between articles?

When you write articles you assign each one to a Section. That Section has an associated Page template which governs the look and feel of articles in that section. So to make them look different, just alter the relevant templates.

To help you with this task, Textpattern uses Forms — sort of reusable snippets of content / markup / stuff — that you can employ in your site. Use those to repeat markup, for example to display every article in an article list, or simply to write something once and reuse it to save your typing fingers (I put the site’s DTD, or layout my site’s <head> section in Forms, because they change infrequently). Conditional tags allow you to customise what appears at what place based on which page/article you are viewing.

You can get an abundance of information on this topic at Textbook especially under the Orientation section which explains how stuff hangs together, and TXP’s naming conventions / semantic model. Plus there are some great Tutorials and the good old Tag reference which should get you going with generating markup for your content to sit in.

Hope that helps.

Last edited by Bloke (2009-08-10 12:35:22)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2009-08-10 12:43:33

stevieg_83
Member
From: Glasgow, UK
Registered: 2009-07-24
Posts: 14
Website

Re: newbie questions

Thanks Bloke,
I missed the bit about assigning an article to a section. Makes sense.

I got the bit about the forms being reusable code, just like an include in EE.

I’ve order the book TXP Solutions so that should help.

Appreciate the quick response too.

Offline

#4 2009-08-10 12:48:36

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,391
Website GitHub

Re: newbie questions

stevieg_83 wrote:

Thanks Bloke,

No problem. Sorry if I came across too patronising ;-)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2009-08-10 12:57:22

stevieg_83
Member
From: Glasgow, UK
Registered: 2009-07-24
Posts: 14
Website

Re: newbie questions

not at all.

How would I address this though?

On other thing, EE has a switch parameter which essentially says you can apply multiple classes to various weblog entries, is there something similar available in TXP?

Offline

#6 2009-08-10 13:02:35

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,391
Website GitHub

Re: newbie questions

stevieg_83 wrote:

EE has a switch parameter which essentially says you can apply multiple classes to various weblog entries, is there something similar available in TXP?

Pass. I’m not an EE user so I’m not quite sure what that refers to. A class to me is something that you use with CSS — evidently they reuse that terminology in EE land :-)

I’m sure someone who has used both EE and TXP will chime in to help out.

Last edited by Bloke (2009-08-10 13:03:05)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#7 2009-08-10 13:40:02

stevieg_83
Member
From: Glasgow, UK
Registered: 2009-07-24
Posts: 14
Website

Re: newbie questions

no worries.

basically what it does is say for article 1 in section xxx apply this class, article 2 in section xxx apply this class.

I use it for displaying entries horizontally so that article 1 floats left, article 2 sits centrally and so on and so forth.

Offline

#8 2009-08-10 14:22:12

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: newbie questions

stevieg_83 wrote:

basically what it does is say for article 1 in section xxx apply this class, article 2 in section xxx apply this class. I use it for displaying entries horizontally so that article 1 floats left, article 2 sits centrally and so on and so forth.

Hopefully people will share a several tricks to accomplish what you are after.

To get you started, a plugin called zem_nth may help.

Offline

#9 2009-08-10 19:40:09

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

Re: newbie questions

I put up a TXP tip on this yesterday. Might help.

Offline

Board footer

Powered by FluxBB