[support] How to create a new template

Carl Wiedemann carl.wiedemann at gmail.com
Mon Apr 25 19:02:17 UTC 2011


>
> maybe I need a
> page.tpl.php or template.tpl.php with the appropriate php code to
> display the correct information.


Generally, it's better practice to write a custom views handler for this
instead of putting it in the theme layer. Check out
http://views-help.doc.logrus.com/help/views/api for more information.

On Fri, Apr 22, 2011 at 7:14 PM, Roger <arelem at bigpond.com> wrote:

> Apologies for harping on with this problem, but I'm thinking, after so
> much trouble with views-calc and computed field that maybe I need a
> page.tpl.php or template.tpl.php with the appropriate php code to
> display the correct information.
> Problem is, some time ago I read a tut on creating a new
> template.tpl.php, renaming it, etc but cannot find that tut nor how to
> get the new template to display from a menu selection.
>
> I really need some hand holding here to understand the process, where
> the php code should be put in the tpl.php
>
> Help gratefully appreciated
> thanks in advance
> Roger
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110425/84bedf76/attachment.html 


More information about the support mailing list