I created an accademical website.
A feature of my website is
- for teachers: to put the date of exames
- for students: to book for exams (using comments)

I neeed the teacher put the expiratin date to book.
So I set to -not published- if node expired (while I need not -not published- but -do not allows comments-, but it is another issue)

Anyway the main problem is that in the exams node is not shown the date of expiration, and absolutely I need it does.

some help?
thanks

fab

Comments

fabrizioprocopio’s picture

If I can overdo :-) (in addition to visibility of expiration date)
I installed the module date and calendar
so that users can use the calendar visual widget (nice and usefull)
I saw the caleendar does't affect on the field of node-expire date.
I'm not a php coder, otherwise i had yet a hand instead just to speak (sorry about that)

thanks for your time and patience

fab

toddwoof’s picture

This might be similar: I would like to display the node expiration date in the node page, so any user can see when the node expires.

Anyone have a suggestion? I thought about a computed field to capture the value of the node expiration, but I don't think that will work. Is there any simple way to display the expiration date?

katiebot’s picture

You can do this with:
print $node->expire;

vikramy’s picture

Status: Active » Fixed

Closing this issue. #3 will work. Thanks katiebot.

vikramy’s picture

Status: Fixed » Closed (fixed)
fabrizioprocopio’s picture

where that code have be put?

vikramy’s picture

It can go in template file. Lets say node.tpl.php.

print date("Y-m-d", $node->expire);

If you have time, take a look at #21 patch.

http://drupal.org/node/405608. And report bugs please.