Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
presentation templates not showing up
Paul
Here's probably a very simple issue. I have just installed TeamSite on a test server and have built a branch, imported copy and made sure my templating.cfg file is in order. I can start a new data record, save it and preview it however I should get a choice of presentation templates (there are two to choose from), but that choice is never presented. what is the obvious thing tha I am missing here?
Find more posts tagged with
Comments
MattP
lets see your templating.cfg. Do you have the approprate attributes for multiple tpls?
something like...
<data-type name="your_name_here" dcr-type="iwov">
<presentation>
<template name="default.tpl" extension="asp">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
<template name="default2.tpl" extension="asp">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
Paul
templating.cfg looks like this:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE templating SYSTEM "templating4.0.dtd">
<templating>
<category name="MAIN_SrvDir">
<locations>
<branch vpath-regex=".*" />
</locations>
<data-type name="ServiceDirectory" dcr-type="iwov">
<presentation>
<template name="srvdir.tpl" extension="shtml">
<locations>
<branch vpath-regex=".*" preview-dir="/Component/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
<template name="srvdir_print.tpl" extension="html">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
<data-type name="MasterList" dcr-type="iwov">
<presentation>
<template name="masterlist.tpl" extension="shtml">
<locations>
<branch vpath-regex=".*" preview-dir="/Component/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
<data-type name="Non_Std_Services" dcr-type="iwov">
<presentation>
<template name="infra_srv.tpl" extension="shtml">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
<template name="support_srv.tpl" extension="shtml">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
<data-type name="Services" dcr-type="iwov">
<presentation>
<template name="standard_srv.tpl" extension="shtml">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
<data-type name="IT_Projects" dcr-type="iwov">
<presentation>
<template name="it_projects.tpl" extension="shtml">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
<template name="it_projects_print.tpl" extension="html">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
<data-type name="HomePage" dcr-type="iwov">
<presentation>
<template name="homepage.tpl" extension="asp">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
<template name="index.tpl" extension="shtml">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
</category>
<category name="MAIN_AMD">
<locations>
<branch vpath-regex=".*" />
</locations>
<data-type name="HomePage">
<presentation>
<template name="homepage.tpl" extension="html">
<locations>
<branch vpath-regex=".*" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
</presentation>
</data-type>
</category>
</templating>
MattP
OK, which template are we troubleshooting?
Matt
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
Paul
IT_Projects
Error.jpg
MattP
it looks OK to me.
Do any of the other multiple presentation templates work?
Have you tried a iwreset? (even though you shouldn't have to)
I am assuming both tpls are in the root of the presentation directory.
Your structure is
WA
templatedata
MAIN_SrvDir
IT_Projects
presentation
it_projects.tpl
it_projects_print.tpl
It is case sensitive!
Otherwise, not sure.
Matt
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
Paul
boy do I feel STUPID! one of the .tpl files was missing. apparently when the files were imported, I missed one. allis well. Thanks for the kick in the head.