Help - Search - Members - Calendar
Full Version: Sharing Macros-Templates
Movable Type Community Forum > Additional Resources > Plugin Development and Usage
aSH
Hello,

I'm playing with MT Macros plugin and I would like to know:

1. What is the best format to share a macro-template?
I have created a macro-template and I would like to share it (my macro template is called by the other templates). But copy and paste doesn't works. Somehow my pasting doesn't works (wrap). besides, my macro template has 76kb, so, it's not cool to copy and paste (btw, what is the kb limit for a template in Movable Type?)
So, I was thinking in sending the template and use the "Link this template to a file": people just download the template and then upload to their server and link the file (btw, it's possible to create-rebuild a template linking a file in a different server?).
What format should I use to distribute the macro-template?

2. To share a macro-template, is better to use an external file or copy my output file generated by MT and distribute it? (I suppose that all the MT versions had the same file structure... normally the output templates are located in the same folder that the main page... Am i wrong?)


Thanks in advance (((((wink.gif

Note: Where can I ask some Perl questions? I have some questions about my macros... Mailing list, forums... please let me know.
girlie
I use the ShowTemplates plugin to make a template available - see the macros for my smilies.

For Perl, I'd start with the resources list at Perl.com.
aSH
Thank you girlie!

Just one question:

ShowTemplates plugin needs the HTML::Entities module.
It's a standard Perl module?
Where can I find it?

No success via search in MT-plugins or google...

TIA

(smile.gif)
kadyellebee
Looks like HTML::Entities is a standard part of the installation for all of the servers with my host -- but if you don't have it, you imght be able to install it yourself from the CPAN distribution

smile.gif
Kristine
aSH
Actually I can't modify my server, so I can't install that module. sad.gif


BUT, I made an interesting combination of MTMAcros plugin, CodeBeautifier and ShowTemplates plugin (((((wink.gif

I called MTMAcros and CodeBeautifier at the top of my template like that:

CODE
<MTMacroDefine name="beautifier" ctag="code">
<MTCodeBeautifier language="[MTMacroAttr name='language']">
<MTMacroContent>
</MTCodeBeautifier>
</MTMacroDefine>


and then I called ShowTemplates plugin like that:

CODE
<code language="Perl">
<MTShowTemplates blog_id="1" name="my_template">
<b><$MTShowTemplateName$></b> <$MTShowTemplateType$><br />
<$MTShowTemplateText$> <br /><br />
</MTShowTemplates>
</code>



And it works like charm!!!

(biggrin.gif)
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-2010 Invision Power Services, Inc.