Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-05 06:46:23

histerius
New Member
Registered: 2007-05-04
Posts: 3

Applying design to txp

Hi to all!

I’m learning about txp because I want to port my website from phpnuke to css cms. I need some info because I can’t find a good tutorial on the net, and I couldn’t manage to find a little complicated design to study it.

My questions are:

1. How to stylize article headline?

2. In my html I have <txp:article limit=“2” />. It will show two articles, of course, but who controls articles? That single line is enough to display articles, so how can I get just headline?

3. Is it possible to display an image from css? I found that it is possible but the path must be fully specified and I, of course, want relative paths.

Thank you,
Stjepan

Offline

#2 2007-05-05 10:39:55

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

Re: Applying design to txp

1. and 2. Forms, tag reference.

3. Do you mean as a background image? You don’t need the full url, it will use the path to your site that was specified at the setup. So url(images/image.gif) will do. Sometimes you may need to use /images or ../images, but you certainly don’t need the full url.

Offline

#3 2007-05-05 21:05:02

histerius
New Member
Registered: 2007-05-04
Posts: 3

Re: Applying design to txp

Yes, I’ve seen the tags reference, however I can’t understand the txp philosophy. Articles on semantics are ok, but they’re all on very abstract level. At least for me.

So, should I write this:

<h3><txp:title></h3>
<txp:article limit=“1”>

Of course, h3 is styled in a css file.

Offline

#4 2007-05-05 22:16:04

histerius
New Member
Registered: 2007-05-04
Posts: 3

Re: Applying design to txp

never mind, I give up.

Offline

#5 2007-05-06 15:04:54

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

Re: Applying design to txp

histerius wrote:

never mind, I give up.

That’s a bit quick, don’t you think? Almost all questions are answered in this forum, just don’t expect it to happen within 70 minutes or so…

If you’d still like some help with this, let us know.

Offline

Board footer

Powered by FluxBB