Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-13 13:48:16

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 811
Website

Is it possible to breakup the <txp:title /> tag?

So I can style a particular part of the title … like the date in this one ’16/11/06 Workshop Rotterdam’ … in a smaller type … or different colour?

Last edited by RedFox (2006-09-13 14:06:07)

Offline

#2 2006-09-13 14:10:55

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Is it possible to breakup the <txp:title /> tag?

  • txp:posted = the date
  • txp:title = the title

<code>
<h2><span><txp:posted /></span> <txp:title /></h2>
</code>

CSS:

<code>
h2 {
color: #666;
font: 2em georgia,serif;
}
h2 span {
color: #000;
font-size: 0.8em;
}
</code>

Last edited by deldindesign (2006-09-13 14:11:28)

Offline

#3 2006-09-13 14:12:30

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,557
Website GitHub Twitter

Re: Is it possible to breakup the <txp:title /> tag?

I don’t think it s possible, but you can do elsewhere!

taking your exemple:
make: title: Workshop Rotterdam
use a custom field (ex: Mydate) and fill it with 13/sep/06

and in form article you make:

< h3>< b>< txp:custom_field name=“Mydate” /></b>< txp:title /></h3>< txp:body />

This exemple will make 13/sep/06 in bold!

Offline

#4 2006-09-13 15:31:43

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 811
Website

Re: Is it possible to breakup the <txp:title /> tag?

Thank you all! I didn’t knew the workaround with custom_field! Now I do … :)

Last edited by RedFox (2006-09-13 15:34:33)

Offline

#5 2006-09-13 15:56:20

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Is it possible to breakup the <txp:title /> tag?

I greatly recommend Jon’s suggestion.

Offline

#6 2006-09-14 08:21:01

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

Re: Is it possible to breakup the <txp:title /> tag?

RedFox wrote:

Thank you all! I didn’t knew the workaround with custom_field! Now I do … :)

Like mary, I would also recommend Jon’s suggestion as custom fields are not included in the search.


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

Offline

#7 2006-09-14 15:13:55

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 811
Website

Re: Is it possible to breakup the <txp:title /> tag?

The date in the example is not the date of txp:posted … sorry, if I wasn’t clear enough!

Last edited by RedFox (2006-09-14 15:14:14)

Offline

#8 2006-09-14 20:24:54

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 700
Website Mastodon

Re: Is it possible to breakup the <txp:title /> tag?

RedFox wrote:

So I can style a particular part of the title … like the date in this one ’16/11/06 Workshop Rotterdam’ … in a smaller type … or different colour?

You can, with this plugin aswell


A hole turned upside down is a dome, when there’s also gravity.

Offline

Board footer

Powered by FluxBB