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)
- 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
.Error Numbers
There are no possible
errno
for this tag.Example
This example is taken from the New Portal example included with Sites.
<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 > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.