MACROMEDIA CONTRIBUTE 3-DEPLOYING CONTRIBUTE Guida Utente Pagina 53

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 142
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 52
1 2 ... 48 49 50 51 52 53 54 55 56 57 58 ... 141 142

Commenti su questo manuale

Nessun commento