Hi guys,
I'm trying to display the actual date in a theme based on Pushbutton.
Is there a way to do it?
Moreover are there any other variables than the ones listed in the drupal handbook?
Where can I find them?
Thanks in advance,
Riccardo

Comments

Robert Castelo’s picture

You could display the date in a custom block in the side bar.

What format do you want to display the date in?

[MegaGrunt]

------------------------------------------
Drupal Specialists: Consulting, Development & Training

Robert Castelo, CTO
Code Positive
London, United Kingdom
----

cantastorie’s picture

Well, I would like to display the date just above the header.
However, I'd like to display the date as 17 January 2005.
Thank you.
Riccardo

Robert Castelo’s picture

This is the kind of thing which is best done using the PHPTemplate rather than the XTemplate theme engine.

XTemplate, which Pushbutton uses, is for designers to create templates without requiring any PHP programming knowledge. PHPTemplate allows PHP to be mixed into it's templates.

There's a PHPTemplate version of Pushbutton, I'd recommend using that as the starting point for your new theme if you need to add features for which you'll need to use PHP in the template.

[MegaGrunt]

------------------------------------------
Drupal Specialists: Consulting, Development & Training

Robert Castelo, CTO
Code Positive
London, United Kingdom
----

cantastorie’s picture

Thank you for your patience. I'll try out.