I'd like to do something like this with the "Node body ad insertion template"

<div style="float: right; margin: 0; padding: 0 1em .25em 0;">[adsense:250x250:%slot]</div>%body<br class="clear"/>[adsense:728x90:%slot]

Where %slot is a CCK field the author of the node fills in. Is this possible?

Comments

Stomper’s picture

Not sure if this is what you're going for, but I think it would be very cool if there was "Adsense Injector" CCK field type. Someone could simply add the field to their content type and then insert the necessary Adsense code.

The only issue would be placement but could be fixed by tweaking the tpl.php using dsm() function to identify the field output.

Greg Boggs’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)
Greg Boggs’s picture

To position ads above the body, but next to fields you can create an adsense ad as a text field and wrap it in a field group. You only need content Injector to place ads into the body.