Help - Search - Members - Calendar
Full Version: MTMacro & Template modules
Movable Type Community Forum > Additional Resources > Tips and Tricks
stuboo
Hello all,

I am building a travelogue for an extended trip my wife and I are doing to Costa Rica. I would like to use MTMacro to create links to maps for cities that I mention in my travelogue so friends and family will know what part of the country I am referring to.

For instance, if I type . . . .
QUOTE
The wife and I visited Santa Elena today and we had a wonderful time talking with the local people.  They were impressed with our Spanish skills.


I would like to generate this . . .
CODE
The wife and I visited <a href="javascript:openfile_santa-elena()">Santa Elena</a> today and we had a wonderful time talking with the local people.  They were impressed with our Spanish skills.


I also want to use the same type of search/replace to link to pictures of animals that we might refer to in the travelogue.

My question is, I can figure out how to use MTMacro but instead of defining 100 different macros for all the different cities I want to use a module to define the city/link relationships. I have no idea where to begin writing such a module.

Any tips, tricks, links, suggestions?

Thanks to all in advance for your help.

Ryan
stuboo
sorry to waste your time. i figured it out.

thanks,
stuboo
gvtexas
So...can you share what you figured out? biggrin.gif
stuboo
QUOTE (gvtexas @ Jul 11 2003, 02:08 PM)
So...can you share what you figured out? biggrin.gif

I'd be happy to share. Thanks for asking. I'm using MTMacro by Brad Choate ( find it at MTplugins.org ). I have to define each city in the macro but it works wonderfully for my purpose.

Hope this helps.

stuboo
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.