1
Discussion & Troubleshooting / Re: if in templates
« on: June 23, 2006, 11:41:26 AM »
oh and it's not smarty. sorry for that....
i have done that and it doesn't work. (forgot to post that line in my initial posting).
I can display the variable {google} which shows 1 or nothing but I can not make a if query like {if google}x{endif google}. It shows the tags.
Anyway i have now placed for that reason the whole google adsense code in php, assigned to the variable "google". The whole thing is in page_header.php
Now this works fine on all category pages, but not in the details pages. Why not? $cat_id also exists there....
What would I need to change to get it work on detail pages also?
Greetings,
lapinkulta
i have done that and it doesn't work. (forgot to post that line in my initial posting).
I can display the variable {google} which shows 1 or nothing but I can not make a if query like {if google}x{endif google}. It shows the tags.
Anyway i have now placed for that reason the whole google adsense code in php, assigned to the variable "google". The whole thing is in page_header.php
Now this works fine on all category pages, but not in the details pages. Why not? $cat_id also exists there....
What would I need to change to get it work on detail pages also?
Greetings,
lapinkulta