Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Date Icons

#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

#2 2006-05-02 05:25:30

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Date Icons

If CSS suffices, I’d suggest you’d take a look at some technical notes on the site over there.

Offline

#3 2006-05-02 06:44:59

Zarabadoo
Member
From: Denver, CO
Registered: 2004-03-14
Posts: 28
Website

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

#5 2006-05-03 10:27:49

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Date Icons

blush

Offline

  1. Index
  2. » Archives
  3. » Date Icons

Board footer

Powered by FluxBB