Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-12-18 03:55:29

systyrant
New Member
Registered: 2006-12-18
Posts: 8

Can the article name and posted date be seperated?

I’m looking at the <!— center —> portion of the default page and I’m wondering if instead of <txp:article /> there’s some other tag or even options for the article tag that would allow me to separate the article title from the posted date?

I would like to be able to do the following:

Article Title Here.
January 1, 2006

Article body here…

Offline

#2 2006-12-18 04:24:53

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Can the article name and posted date be seperated?

Look at the default form in Presentation -> Forms
There you will find tags like <txp:body />, <txp:posted />, <txp: title />, etc.
Those are article tags that will let you create your own customized forms and display the content as you like.
Fory your example, you can do

<h2><txp:title /></h2>
<p><txp:posted /></p>
<txp:body />

Get it?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB