Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Topic closed
[archived] tcm_write_macros
Notice: This thread is archived, this plugin is no longer available.
**********************************************************
Okay, this one’s beta – which means, I finished it about a half-hour ago.
Basically, it lets you define snippets of Javascript code that runs when you click little links from the write tab. For instance, I use a custom field to place articles on different parts of a homepage. Instead of remembering the special codes for each place, I can write a macro, say…
Home Bottom Right
var obj = document.getElementById('custom-3');
obj.value = "bottom-left";
So, you just click “Home Bottom Right” in the write tab and it’s there. This is pretty useful for novice content editor-type dudes and gals.
You can get the plugin here: tcm_write_macros.txt
Code Samples
I’m posting some code samples at Code Snippets. If you have any, just post them with the tag “tcm_write_macros” and they’ll show up there.
Last edited by tmacwrig (2006-11-10 01:03:21)
Offline
#2 2006-11-10 00:33:55
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: [archived] tcm_write_macros
Hmm. Sounds cool. I’ll have to take it for a spin!
Offline
Pages: 1
Topic closed