Show expiration date

fabrizioprocopio - March 4, 2009 - 19:04
Project:Node Expire
Version:6.x-2.03
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

fabrizioprocopio - March 5, 2009 - 17:21

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

#2

toddwoof - June 1, 2009 - 20:37

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?

#3

katiebot - September 15, 2009 - 21:59

You can do this with:

<?php
print $node->expire;
?>

 
 

Drupal is a registered trademark of Dries Buytaert.