MACROMEDIA CONTRIBUTE 3-DEPLOYING CONTRIBUTE Betriebsanweisung Seite 53

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 142
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 52
AssetQuery
Components User's Guide
53
Modify the
$node.contribution
line to include a link to the
$node.detailsurl
field:
<li>
<font face="Times,Times New Roman" size="2" color="black"><a
href="$node.detailsurl">Title: $node.contribution("title")
</a></font>
Querying by Date
Below are several examples of an AssetQuery component that retrieves assets by date.
These blocks of code work with the Sample Site that is installed with Collage, and can be
adapted to meet the needs of your projects.
The following is an example of an AssetQuery that displays a list of press releases for the
past year:
NOTE
The current timestamp value is the time of the last deploy, since the resulting HTML files
are static based on that time.
<nexus:component classid="nexus/components/AssetQuery"
code="$nexusComponents" dwcomptype="assetquery"
root="/WebSite/PressRoom/"
filter="(A.AssetType='Press Release') and
((A.StartDate is null) or ((A.StartDate <= current
timestamp) AND (A.StartDate >= current timestamp -
365)))">
<nexus:prelog> </nexus:prelog>
Start Date: $node.startdate("MM/d/yy") -- $node.name <br>
<nexus:prolog> </nexus:prolog>
</nexus:component>
Filter
property limits
query to Press Release
asset type
Limits query to assets
with no start date or a
start date that is less than
or equal to the current
timestamp, within the past
365 days
Seitenansicht 52
1 2 ... 48 49 50 51 52 53 54 55 56 57 58 ... 141 142

Kommentare zu diesen Handbüchern

Keine Kommentare