Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
General Reference
Reference
View Schema
G-L
 IfNew Element

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
IfNew Element (View)

Returns TRUE if the item is considered new. Usually, this means that the item was created after midnight the day before. This element renders its contents if the item was created today, that is, after only one day has passed, the number of days being a registry setting for which the default value is 1.

<IfNew
  Name = "Text">
</IfNew>
Attribute Description

Name

Optional Text. Specifies the name of a field. The default value is Created.

None

Numerous

Minimum: 0

Maximum: Unbounded

The following example displays a particular logo if the display pattern of the field is new.

Xml
<DisplayPattern>
  <IfNew>
    <HTML>
      <![CDATA[ <IMG SRC=" ]]>
    </HTML>
    <ImagesPath />
    <HTML>
      <![CDATA[ newlink.gif" alt=" ]]>
    </HTML>
    <HTML>
      New
    </HTML>
    <HTML>
      <![CDATA["> ]]>
    </HTML>
  </IfNew>
</DisplayPattern>
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker