[drupal-support] phptemplate help needed

Earl Miles merlin at logrus.com
Thu Aug 11 14:59:15 UTC 2005


Peter Apockotos wrote:
>> if (module_exist("adsense")) {
>>   if ($page) {
>>     print adsense_display("120x600", 2, 4);
>>   }
>> }
> 
> Will that only let the ad load when the full story is shown?

I need to doublecheck and drupal.org is timing out just now; you can look for 
yourself in the handbooks under themeing the PHPTemplate engine, where it gives 
a list of variables (that I think is 1 revision out of date, but is still pretty 
accurate) and it tells you all of the variables. If I Remember It Right, $page 
is set to true if you're looking at a node's full page. It's possible I remember 
this wrong and there's a different variable that tells you this.

I'll try to check again later today if you're not able to figure this out with 
that info.



More information about the drupal-support mailing list