[themes] shortcut for phptemplate variable printouts

Farsheed tfarsheed at yahoo.com
Fri Jun 23 20:00:08 UTC 2006


OK, let's nix my idea then :) 

Erik, I feel your pain.  Between the core theme
functions, module's theme functions, tpl.php files,
and  the numerous CSS files loaded in - it's very
difficult to even trace what's happening on a single
page load.
If there were some way to at least tell what was
loaded and from where (something like the devel
module) it seems like that velvet curtain would become
slightly more transparent.

Farsheed


--- Erik Mallinson <erik at invisiblelantern.com> wrote:

> I have to agree, I didn't know any php either and
> found it easy to 
> understand. I was coming from MovableType after
> their pricing debacle, 
> so tag formatting was what I knew.
> 
> What was hard, and still is, is trying to figure out
> what can be themed. 
> It's felt like, and still does to an extent, like a
> velvet curtain is 
> pulled over the guts of Drupal.
> 
> Erik
> 
> Laura Scott wrote:
> > When I started theming for Drupal in 2004, I knew
> no php, and even so 
> > I found these commands in the templates to be
> quite obvious.
> >
> > What's more, there are plenty of resources to
> learn more PHP.
> >
> > Adding yet more abstraction to theming seems to be
> undesirable, imho. 
> > After all, if one is php-phobic, there's always
> the Smarty theme engine.
> >
> > Laura
> >
> > On Jun 23, 2006, at 11:04 AM, Farsheed wrote:
> >
> >> Hi,
> >>
> >> In order to minimize the php code seen by a
> themer, I
> >> was wondering what people thought of making
> simple
> >> aliases for basic printouts of phptemplate
> variables.
> >> The phptemplate engine would go in and find these
> >> aliases and convert them to their actual values.
> >>
> >> BEFORE:
> >> <?php print $content ?>
> >> <?php print $sidebar_left ?>
> >>
> >> AFTER:
> >> {$content}
> >> {$sidebar_left}
> >>
> >> Just looking to reduce the amount of potentially
> >> intimidating code for new themers. Of course
> regular
> >> PHP should still work.
> >>
> >> Farsheed
> >>
> >>
> >>
> >>
> __________________________________________________
> >> Do You Yahoo!?
> >> Tired of spam?  Yahoo! Mail has the best spam
> protection around
> >> http://mail.yahoo.com
> >> _______________________________________________
> >> themes mailing list
> >> themes at drupal.org
> >> http://lists.drupal.org/mailman/listinfo/themes
> >
> > _______________________________________________
> > themes mailing list
> > themes at drupal.org
> > http://lists.drupal.org/mailman/listinfo/themes
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the themes mailing list