Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
portal:logdep
Logs an article as a dependency on an item.
Syntax
<portal:logdep id="string" date="JDBC-formatted date
" />Parameters
id (required)
- A string that uniquely identifies the item you want to record. For example, Article-9876835, where 9876835 is a unique ID for an asset of type Article.
date (required)
- The SQL date format for the date and time when the item was last modified. If this parameter is left null, the current date and time are used.
Description
The name of the output variable created is
randval
.errno
None.
Example
This example is taken from the New Portal example included with Content Server.
<ics:if condition='<%=ics.GetVar("articleid")!=null%>'> <ics:then> <!-- get the article from the database --> <ics:setvar name='id' value='<%=ics.GetVar("articleid")%>'/> <ics:selectto listname='articlelist' table='NewPortalArticle' where='id' limit='1' what='*'/> <portal:logdep> <portal:parameter name='id' value='<%=ics.GetVar("id")%>'/> </portal:logdep> <ics:if condition='<%=ics.GetList("articlelist",false)!=null && ics.GetList("articlelist",false).hasData()%>'> <ics:then> <!-- display the article --> <div class="articleHeadline"> <ics:listget listname="articlelist" fieldname="headline"/> <br /> </div> <div class="articleSubHead"> <ics:listget listname="articlelist" fieldname="subheadline"/> <br /> </div> <div class="articleCopyright"> <ics:listget listname="articlelist" fieldname="byline"/> <br /> <ics:listget listname="articlelist" fieldname="creditline"/> <br /> <br /> </div> <div class="articleBody"> <ics:listget listname="articlelist" fieldname="@urlbody"/> <br /> <br /> </div> <div class="articleCopyright"> <ics:listget listname="articlelist" fieldname="copyright"/> </div> </ics:then> <ics:else> Error fetching Article <%=ics.GetVar("articleid")%> </ics:else> </ics:if> </ics:then> <ics:else> No article id. </ics:else> </ics:if>
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.