I am using a php case statement in node.tpl.php to give custom teaser code based on content-type.

I may be having a bit of a brain lock here, but using the theme engine (node-content_tyle.tpl.php) seems to style the nodes full AND teaser display, overriding what I've programmed in node.tpl.php

Anyone got a clue as to how I could avoid this?

Ideally I'd like some PHP to sniff for content-type AND the display mode being full not teaser, and offer up a switch with each case being a different content-type. Just can't seem to get it to work right.

TIA

Rich

Comments

monkeybeach’s picture

Just figured it out, please ignore this thread :-)

vojnar’s picture

If you have figured this out then why dont you post it here?
Would be nice to help others with the same problem!

Thanks,
Gabor
Webdesign
Weboldal Készítés Weboldal.biz