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)
"exception while parsing templating.cfg file" err
System
I added few lines of code to the existing "templating.cfg" file so that my datacapture.cfg file (DCT) can be used to create DCR's. when I choose the option "New Data Record" message "exception while parsing" error occurs. I added comments to the templating.cfg file prefixing the line with #. Hope that is correct way of commenting. or under the datatype "new" in the presation folder I don't have any templates does it matter?
I am pasting the templating.cfg file. could someone throw some ideas .
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE templating SYSTEM "templating5.0.dtd">
<templating>
<category name="www">
<locations>
<branch vpath-regex=".*" />
</locations>
<data-type name="main" dcr-type="iwov">
<presentation>
<template name="mainIndex.tpl" extension="asp">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
<template name="communityIndex.tpl" extension="asp">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
<data-type name="index" dcr-type="iwov">
<presentation>
<template name="MainIndex.tpl" extension="asp">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
<template name="CommunityIndex.tpl" extension="asp">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
</category>
#Nath. 12/02/02. Added the following 18 lines of code to be able to add new DCT.
<data-type name="new" dcr-type="iwov">
<presentation>
<template name="MainIndex.tpl" extension="asp">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
<template name="CommunityIndex.tpl" extension="asp">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
</category>
</templating>
thank you
nath
Find more posts tagged with
Comments
akshathp
I don't think you could use
#
to comment XML code. You would need
<!-- your-text-here -->
(HTML comment tag).
Hope this helps!
Akshat Pramod Sharma
Interwoven Inc.
Migrateduser
I still get the same error. I am assuming its because I don't have any .tpl files in the PRESENTATION folder.
I have hard time typing the path to copy a .tpl file from one folder to other folder.
source folder: Internet/developer/templatedata/www/index/presentation/nath.tpl
target folder is: (I would like to copy the source file to )
Internet/developer/templatedata/www/index/new/presentation.
any suggestions in typing the correct way while using Copy feature.
thanks
nath
akshathp
Ofcourse you would need the tpl and datacapture in place.
To copy the tpl from the present folder to new folder follow these steps:
1. Browse to the folder where the source file is stored. ie., Internet/developer/templatedata/www/index/presentation
2. Select the checkbox for the file nath.tpl
3. Select copy from TeamSite dropdown menu "File"
4. In the Javascript prompt box for path write "../new/presentation/nath.tpl"
This should copy the file in your desired folder which in this case is "new"
Also, make sure if you are changing the path system here, it has to reflect in the templating.cfg too.
Hope this helps!
Akshat Pramod Sharma
Interwoven Inc.
Migrateduser
It says
ERROR: failed to copy "mainIndex.tpl" to "../new/presentation/mainIndex.tpl". "/templatedata/www/index/presentation\../new/presentation/" is not a directory in the workarea.
I tried to copy to "www". even then it displays can't copy.
any suggestions.
thanks again
akshathp
So, please make sure before you copy, these new folders are created. You will have to create them manually. When the new fodlers are created, only then it will be able to find destination.
Hope this helps!
Akshat Pramod Sharma
Interwoven Inc.
Migrateduser
I have already created the data and presentation folders.
I have logged in to teamsite server as an "Editor". Could it be possible that this issue is related to permissions issue or could it be possible that I don't have workareas for myself.
any thoughts on this.
nath
akshathp
So did you create the folders called "new & presentation" that you are targetting to?
Internet/developer/templatedata/www/index/
new
/
presentation
Akshat Pramod Sharma
Interwoven Inc.