Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
Re: Is it possible to breakup the <txp:title /> tag?
txp:posted= the datetxp: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
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
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
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
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
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