Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-05-29 18:37:17
- johnnie
- Member
- Registered: 2007-03-10
- Posts: 58
Add adsense
Hello!
No matter what I try, my adsense code always gets malfored by txp’s parsers. Especially in hak_tinymce, which I would ideally like to use, things get warped. How do I safely and easily add adsense to my txp-article? Can I use a form, and if so, how do I do txp-tags in tinymce?
Offline
Re: Add adsense
You should turn off TinyMCE to insert a script, or use the Edit HTML button to copy it in.
In Textile, try prepending notextile..
to the code block. (If you have text after the javascript, add a p.
tag in front of it so Textpattern knows you’re using Textile again.
Of course, I can’t help but wonder why you need to insert your Adsense code into an article—it really belongs in a Form or Page.
Offline
#3 2008-05-30 00:34:20
- johnnie
- Member
- Registered: 2007-03-10
- Posts: 58
Re: Add adsense
I want to strategically place my adsense inside the articles :)
Offline
Re: Add adsense
You might also consider putting the Adsense script inside a “misc” form, then calling <txp:output_form form="adsense" />
inside the article. I’ve used output_form
inside an article before—it works, and there’s probably less room for Textile-related breakage. You’ll still need to go around TinyMCE and edit the article source directly.
Offline
Pages: 1