Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-05-02 04:12:27
- Ace of Dubs
- Member
- Registered: 2006-04-17
- Posts: 446
Date Icons
Is there a way to get TXP to print out a prespecified image that sincronizes with the date?
It would be cool to have calendar pages instead of the usual Hour/Day/Month format.
Yeah, I know that’s an awful lot of gifs to make…but me likes teh fancy stuff!
Offline
Re: Date Icons
If CSS suffices, I’d suggest you’d take a look at some technical notes on the site over there.
Offline
Re: Date Icons
As long as you have a predefined image naming scheme, and upload your images via FTP, you could do something like what I am trying to do with my comics files:
<img alt="<txp:title />" class="comic" src="<txp:site_url />comics/<txp:section />/<txp:posted format="%Y%m%d" />.png" />
<br />
Basically, it looks in the comic directory for a image of the naming format yyyymmdd.png. The key is to use the format attribute of the txp:posted tag to get teh format you want. You would probably want to use the date for the alt attribute instead of the title though. Hope that gives you some ideas at least.
This will work for the image method you wanted, but if you can do it via CSS styling, it would probably be a hell of a lot less work. I couldn’t imagine making that many little image files. Sounds like very monotonous and boring work. Some people like torture though. hehe.
Last edited by Zarabadoo (2006-05-02 06:47:10)
—Al “Zarabadoo” Steffen
http://www.zarabadoo.com
Offline
#4 2006-05-03 10:23:42
- Ace of Dubs
- Member
- Registered: 2006-04-17
- Posts: 446
Re: Date Icons
This is awesome! I really like the calendar you made, wet..great job.
I may go the CSS route on this one as it is indeed a LOT less work, but it’s great to have options and I have pasted this post into my TXP scrapbook of advanced tips.
Cheers!
Offline
Re: Date Icons
blush
Offline
Pages: 1