Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-04-22 18:45:38
- groda
- Member
- Registered: 2007-04-22
- Posts: 11
date format
I want to write the date like
“day in numbers” / “month in numbers”
i.e.: 4/6 = fourth june
I can’t choose this from the default list. Is it still possible to get it?
Offline
#2 2007-04-22 21:51:30
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: date format
You’d have to write PHP code or a plugin to do that.
Alex
Offline
#3 2007-04-23 02:13:51
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: date format
TextBook: posted
<txp:posted format="%d/%m" />
Offline
#4 2007-04-23 09:53:06
- groda
- Member
- Registered: 2007-04-22
- Posts: 11
Re: date format
Thanx Mary! I’m indeed greatfull!
I forgot to ask another thing.
i used a tip in the “frequent how to…”-section to make a list of articel-headlines
This solution uses a list (<li>) function. Unfortunatley this results in “dots” in the beggining of each line (which, as far as i understood, is one of the points with the hole list-function). I don’t want these dot’s. Is there any other way to list this, and still get it like a list? If i take away the list-tag i don’t get a line break
At now my code looks like this:
“<li><txp:posted format=”%d/%m” />:<txp:permlink><txp:title /></txp:permlink></br /></li>”
Offline
Re: date format
Removing the bullets can (and should) be done in CSS:
ul { list-style-type: none; }
Offline
Re: date format
there is also a typo in your code. it should read as <br />
not </br />
. Having said that <br />
is probably not needed at all.
Last edited by colak (2007-04-23 11:50:28)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Pages: 1