Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
iwgen error
dinesh123
I am generating an html file using iwgen
iwgen -t /default/main/PGG/PGG_website/PGG_Website_WA/templatedata/ccmsTest/dataTest/presentation/ccmsTest.tpl -r /default/main/PGG/PGG_website/PGG_Website_WA/templatedata/ccmsTest/dataTest/data/record_name testPage.html
,but it gives me error when i am trying to run this
/iwmnt/default/main/PGG/PGG_website/PGG_Website_WA/templatedata/ccmsTest/dataTes
t/presentation/ccmsTest.tpl: does not have a configured filename extension
so can anybody have solution to this?,please let me know if anyone face this problem.
Find more posts tagged with
Comments
gzevin
please post the relevan section of templating.cfg
MartinAtCitat
Maybe the answer is to be found in this
thread
Regards
Martin
Citat Solutions AB
Stockholm, Sweden
dinesh123
I am sending relevant entry in templating.cfg file.
<category name="ccmsTest">
<data-type name="dataTest" dcr-type="iwov">
<presentation>
<template name="ccmsTest.tpl" extension="html">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
</category>
dinesh123
Hi Martin
I went through the thread and check with my code,all entry are ok still it gives me same error. i am sending my relevant entry in templating.cfg file.
<category name="ccmsTest">
<data-type name="dataTest" dcr-type="iwov">
<presentation>
<template name="ccmsTest.tpl" extension="html">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
</category>
Regards
Dinesh
MartinAtCitat
Hi Dinesh,
don't have any really good idea, but i would try to set the full path to the location of the generated file (last parameter of iwgen). Another thing that seems to be missing (but that i don't think should be a problem) is the locations sub-element of the categpry element.
Perhaps worth a try. If you still experiencing problems, try the iwpt_compile.ipl instead of iwgen, which might generate a more detailed error message.
Best Regards
Martin Haggren
Citat Solutions AB
Stockholm, Sweden
lcarr
Just ran into this problem myself and found the cause, in my case, was that I had 2 data types defined in templating.cfg
...
<data-type name="general" dcr-type="iwov">
<presentation>
<template name="general.tpl" extension="properties">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
<data-type name="accounts" dcr-type="iwov">
<presentation>
<template name="accounts.tpl" extension="properties">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
...
but on Y: I had only defined the directories and files for one of the data types. When I removed the extraneous data type from templating.cfg, the error disappeared.