Home > Contents > 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)
- 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
errno
is not set.Example
This example is taken from the New Portal site example included with Content Server.
<!-- get some articles from the database --> <SELECTTO LIST="articlelist" LIMIT="8" WHERE="category" FROM="NewPortalArticle"/> <!-- display the list of articles --> <IF COND="IsList.articlelist=true"> <THEN> <LOOP LIST="articlelist"> <portal.logdep id="articlelist.id"/> <satellite.link pagename="OpenMarket/Samples/NewPortal/XML/main" mode="article" articleid="articlelist.id" /> <a REPLACEALL="Variables.referURL" href="Variables.referURL"> <div class="articleLinkBody"><CSVAR NAME="articlelist.headline"/></div> </a> <div class="articleCopyright"><CSVAR NAME="articlelist.byline, articlelist.creditline"/></div> </LOOP> </THEN> <ELSE> Error retrieving article headlines. errno=<CSVAR NAME="Variables.errno"/> </ELSE> </IF>Release Introduced
This tag was introduced in CS release 5.0.
Home > Contents > Index > ![]()
FatWire XML Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.