Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-08-08 05:48:54
- al-hazred
- New Member
- Registered: 2006-08-08
- Posts: 4
Simple article form question
Greetings,
I’ve been creating a txp layout from scratch and am not fully aware of its capabilities yet; for now, I’d like to know which structure the article’s form should have so that the date is located in the same line of the beggining of the article, exactly behind the first word. I’m looking for this, as an example:
…
Title Of A Random Article
[03/05/58] <i>In scelerisque convallis ipsum. Pellentesque sed lacus. Nunc ut leo. Phasellus aliquam rutrum lacus. Aliquam scelerisque nonummy ligula. Duis semper elit. Nam a dui. In in diam. Proin feugiat nisi id est. Nam urna justo, scelerisque sed, adipiscing vel, ullamcorper nec, dui. Cras eu arcu. Morbi sed sapien at felis iaculis fermentum. Quisque risus est, ornare cursus, hendrerit eu, lobortis et, tortor. Phasellus consequat odio scelerisque elit. Vivamus interdum. Maecenas tristique imperdiet libero.</i>
…
Merely putting the “txp:posted” behind the “txp:body” tag doesn’t work. Or is there a way to make it work, using a special style for the date?
Thanks in advance.
Last edited by al-hazred (2006-08-08 05:50:42)
Offline
Re: Simple article form question
You could try something like this (maybe it’s ugly and maybe it’s very not done CSS-wise, but it could set you on track and I don’t know if it works :):
<code>
< div class=“article”>< div class=“posted”><txp :posted />< /div><txp :body />< /div>
</code>
And then assign a <code>float: left</code> to the <code>< div class=“posted”></code>
…Prrrrrrrr…
Offline
Pages: 1