Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » date format

#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

#5 2007-04-23 10:36:01

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: date format

Removing the bullets can (and should) be done in CSS:

ul { list-style-type: none; }

Offline

#6 2007-04-23 11:49:36

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

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

  1. Index
  2. » How do I…?
  3. » date format

Board footer

Powered by FluxBB