Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] tcm_write_macros

#1 2006-11-09 21:54:01

Archived Plugin Author
Registered: 2004-03-06
Posts: 204

[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)


#2 2006-11-10 00:33:55

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!


  1. Index
  2. » Archives
  3. » [archived] tcm_write_macros

Board footer

Powered by FluxBB