[themes] shortcut for phptemplate variable printouts

Erik Mallinson erik at invisiblelantern.com
Fri Jun 23 18:38:46 UTC 2006


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


More information about the themes mailing list