Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By cantastorie on
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
Block
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
----
Well, I would like to
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
PHPTemplate
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
----
Thank you
Thank you for your patience. I'll try out.