Ever thought, it would be cool to know what your RTF template was going to generate, in terms of output e.g. HTML, PDF, Excel, etc
With the standalone release you can, both the output format and the template being used are available. Both parameters are available
_xt - template name (not the file name)
_xf - output format
they just need to be declared in your RTF template:
<?param@begin:_xt;''?>
<?param@begin:_xf;''?>
You can then reference the values just like any other parameter in a template.
<?$_xt?>
<?$_xf?>
the format parameter will generate 'html', 'pdf','excel','rtf' ie all lower case.
If you have some specific layout that only needs to be shown if a specific output is generated you can combine the parameter with an if statement:
Short and sweet!
<?if:$_xf='html'?>
...
...
<?end if?>
Comments (2)
I have a question regarding Variables. I have an RTF template with a special page that will have different templates from different RTF files. The tag works perfectly when the URL is static.
I tried to put a variable instead of a static URL but it seems that it is not working:
how can I have the tag accept variable URL?
Posted by Ayman | September 25, 2009 1:41 AM
Posted on September 25, 2009 01:41
If you have to do it, you might as well do it right., Purchase Soma Online No Perscription, [url="http://writersrep.angelfire.com/purchase-soma-online-no-perscription.html"]Purchase Soma Online No Perscription[/url], http://writersrep.angelfire.com/purchase-soma-online-no-perscription.html Purchase Soma Online No Perscription,
Posted by Oniaseth | November 3, 2009 1:07 AM
Posted on November 3, 2009 01:07