My hobbies are my passion. Whether or not I receive donations, I will continue to do what I love. If you would like to focus my efforts towards a specific project, donating will help (Use the optional instructions/comments field).
Mon Jun 06, 2005
mem_if_today
This tag will conditionally parse and display the enclosed text data if today is or isnot one of the specified days.
Download
file:
mem_if_today.txt [3.36KB]
Category: Textpattern
download: 649
Documentation
Attributes
| Name | Description | Default Value |
|---|---|---|
| is | This is a comma separated list of names to test today against. A name can be a weekday (should be locale friendly), “weekday” (M-F), “weekend” (Sa-Su), or a month. | none |
| isnot | Functions the same as the “is” attribute, but the enclosed text will be parsed if today does not match any of the days. | none |
| wraptag | The html tag that will wrap the output value | none |
| class | The CSS class that will be applied to the “wraptag” | mem_if_today |
Comment
for an events-based website, would it be possible to add an attribute to only display articles (i.e. events) with a ‘posted’ date that matches the current date?
— nardotcom · 07/14/05 12:34 AM · #
Commenting is closed for this article.





