Hi,We are having a requirement that we need to generate footer html in more than one language.We are using a single template with replicant block.Each block:1.Contains a dropdown of languages code2.two textboxes I am using a prsentation template to generate more than one html.The tpl reads the langcode and genertes the footer_langcode.html say footer_en.html.for the time being i am hardcoding footer string so that every html that is generate is named starts with footer like footer_fr.html, footer_en.html etc.instaed of this hard coding I want that when user wants to generate footer html, he has to specify an output file say abc.If he gives abc as output file I want to generate abc_en.html,abc_fr.html etc.how can I get the name of the file that user has entered in my tpl file.
There are many ways of tackling this problem and the solution depends on your ability. A simple solution is to use the iw_ostream tag in the tpl. So a user would choose to generate foot.html but the tpl would iterate over the languages and generate a html file for each langauge. You will need to use the tpl perl command iwpt_get_ofile_name(); to obtain the original output file and manipulate this to create the lanuage specific output file.One important thing to remember is that a user will have to attach all the html files to the workflow for approval. However, this can be automated with anough effort. If you need another solution then please reply.