Timeline for Do something conditinally on node.tpl.php depending on if the node is tagged with certain taxonomy vocabulary
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 17, 2012 at 0:50 | vote | accept | chinita7 | ||
Jan 16, 2012 at 16:04 | history | edited | Laxman13 | CC BY-SA 3.0 |
added 139 characters in body
|
Jan 16, 2012 at 16:02 | comment | added | Laxman13 | Yes you can add something like that to where "It has color" is printed above. I changed the example in my answer to be more tpl friendly | |
Jan 16, 2012 at 15:46 | comment | added | chinita7 |
Thank you @Laxman13. I actually need to print several <div> blocks including Views output inside. I simply thought I could do something like <?php if (!$title): ?> but obviously not.Sorry for my very limited php... For example if I want to print several of something like <div><?php print views_embed_view('my-views', 'default', $args); ?></div> , Should I print them inside php where "It has color" is in the example above? Or possibly I can use print<<<EOF ?
|
|
Jan 16, 2012 at 15:00 | history | answered | Laxman13 | CC BY-SA 3.0 |