Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-01-02 11:43:08
- divabat
- New Member
- Registered: 2009-01-02
- Posts: 8
Embedding ReTagger code in Textpattern page/article
I’m making static pages for my website, and I want to embed the ReTagger Javascript code into one of the pages. It looks something like this:
<script language=‘javascript’ type=‘text/javascript’ src=‘http://script.retaggr.com/Script/cc.ashx?pid=really_long_string_of_numbers’></script>
I tried the stm_javascript plugin but the extension tab didn’t show up on my control panel and I can’t seem to find an update. I’m using 4.0.7.
How do I paste the above code into my post?
Thanks!
B*B, Tiara
Offline
Re: Embedding ReTagger code in Textpattern page/article
divabat wrote:
I tried the stm_javascript plugin but the extension tab didn’t show up on my control panel and I can’t seem to find an update. I’m using 4.0.7.
here it is… it works in my sites just fine…
YToxMDp7czo0OiJuYW1lIjtzOjE0OiJzdG1famF2YXNjcmlwdCI7czo2OiJhdXRob3IiO3M6MTc6IlN0YW5pc2xhdiBNw7xsbGVyIjtzOjEwOiJhdXRob3JfdXJpIjtzOjE5OiJodHRwOi8vZGhvbmlzaG93LmRlIjtzOjc6InZlcnNpb24iO3M6MzoiMC4xIjtzOjExOiJkZXNjcmlwdGlvbiI7czo4MjoiU3RvcmVzIEphdmFTY3JpcHQgZmlsZXMgd2l0aGluIHRoZSBkYXRhYmFzZSBhbmQgaGFuZGxlcyB0aGVtIHNpbWlsYXIgdG8gQ1NTIGZpbGVzLiI7czo0OiJoZWxwIjtzOjkzNDoiSW4gYWRtaW4gc2VjdGlvbiwgZ28gdG8gdGFiICJwcmVzZW50YXRpb24gPiBqYXZhc2NyaXB0IiBhbmQgY3JlYXRlIG9uZSBvcmUgbW9yZSBqYXZhc2NyaXB0IGZpbGVzIHRoYXQgeW91IHdhbnQgdG8gZW1iZWQgd2l0aGluIHlvdXIgcGFnZSB0ZW1wbGF0ZXMuIFRoaXMgaXMgc2ltaWxpYXIgdG8gdGhlICJzdHlsZXMiIHRhYiAtIHRoZSBKYXZhU2NyaXB0IGZpbGV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E4NDFiMzk3N2EwMzVhYWYxMDMwYmEzZjA2Ijt9
If it does’t work you can use a form (type miscellanious) where the javascript will reside and then call the form.
Sample code: <script type="text/javascript" src="<txp:output_form form="javascript_source" />"></script>
OR
you can just upload the js file in your site and call it in the usual manner
<script type="text/javascript" src="javascript_source.js"></script>
How do I paste the above code into my post?
How do I post tags and code on the forum?
Last edited by colak (2009-01-02 17:40:01)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2009-01-02 19:41:27
- divabat
- New Member
- Registered: 2009-01-02
- Posts: 8
Re: Embedding ReTagger code in Textpattern page/article
Hm, that doesn’t quite work. The plugin works (turns out I’m looking in the wrong section), but because the actual .js file is hosted by Retagger I can’t actually copy & paste their code into the stm_javascript form. Al I have is the bit I quoted above.
What should I do?
Offline
Re: Embedding ReTagger code in Textpattern page/article
What kind of problem are you running into when you put the
<script language='javascript' type='text/javascript'
src='http://script.retaggr.com/Script/cc.ashx?pid=really_long_string_of_numbers'></script>
in your page template?
Edit: oh, you’re putting it directly in a post? Put a space before the code.
Last edited by MattD (2009-01-02 20:08:45)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#5 2009-01-02 20:07:10
- divabat
- New Member
- Registered: 2009-01-02
- Posts: 8
Re: Embedding ReTagger code in Textpattern page/article
Er, I haven’t tried putting it into a template – it’s just for one page, but when I tried putting it into the page, nothing shows up.
Offline
Re: Embedding ReTagger code in Textpattern page/article
Put a space at the beggining of the line to prevent textile formating.
Note: using the word page is confusing as I believe you mean article.
Last edited by MattD (2009-01-02 20:10:55)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#7 2009-01-02 20:15:23
- divabat
- New Member
- Registered: 2009-01-02
- Posts: 8
Re: Embedding ReTagger code in Textpattern page/article
ah, article, all right. I wasn’t sure what to call it myself, sorry.
So I put a space before <script language///etc>?
edit: didn’t work…
Last edited by divabat (2009-01-02 20:18:13)
Offline
Re: Embedding ReTagger code in Textpattern page/article
Trying playing with it here to get the xhtml output to work correctly. When I put a space then your code it works.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: Embedding ReTagger code in Textpattern page/article
Since you should only include the <script>
tag in the <head>
you could use some conditionals to only output this for the articles you need using if article id
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#10 2009-01-02 20:33:09
- divabat
- New Member
- Registered: 2009-01-02
- Posts: 8
Re: Embedding ReTagger code in Textpattern page/article
I’ll take a look into the if_article_id. I think it might be an issue with the actual code…need to fiddle around to see if my hypothesis is right. But thank you :)
Offline