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)
Preview No Data
iwcnb
I have a simple template that when I preview I did not get any data. I using TST 5.5.2 and I can save the DCR fine. Here is my presentation template:
<?xml version="1.0" encoding="UTF-8"?>
<iw_pt name="Headlines">
<![CDATA[
<html>
<head>
<title>Announcements</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<link rel="stylesheet" href="/includes/css1.css">
<script language="JavaScript" src="/js/window.js"></script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="1" cellpadding="1" vspace="4">]]>
<iw_iterate list='dcr.HomepageHeadline' var='InfoLinkHeadline'>
<![CDATA[<tr>
<td valign="top">]]>
<iw_if expr='{iw_value name="dcr.Date"/} eq "02/27/2003" '>
<iw_then>
<![CDATA[
<img src="/images/NewToday.gif" width="1" height="1" border="0" alt="">
]]>
</iw_then>
</iw_if>
<![CDATA[{iw_value name="dcr.HeadlineText"/}</td>
</tr>
<tr>
<td height="5"><img src="/images/dot.gif" width="1" height="1" border="0" alt=""></td>
</tr>
]]>
</iw_iterate>
<![CDATA[ </table>
</body>
</html>]]>
<!-- End CDATA tag -->
</iw_pt>
The preview HTML source I get is this:
<html>
<head>
<title>Announcements</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<link rel="stylesheet" href="/cnbnews/includes/cnb.css">
<script language="JavaScript" src="/cnbnews/js/window.js"></script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="1" cellpadding="1" vspace="4">
<tr>
<td valign="top">
</td>
</tr>
<tr>
<td height="5"><img src="/images/dot.gif" width="1" height="1" border="0" alt=""></td>
</tr>
</table>
</body>
</html>
<!-- End CDATA tag -->
Does anyone know why the I did not get the data when I preview it?
Find more posts tagged with
Comments
mogoo
Are "Date" and "Headlinetext" inside of the replicant in the dct? If so, they need to be referred to as InfoLinkHeadline.Date, instead of dcr.Date....
If that's not the problem, it would help if you posted your dct.
maureen
Streamserve memory.jpg
iwcnb
You were right. The "Date" and "Headlinetext" are inside of the replicant in the dct. I got it to work now.
Many thanks!!!