Difference between revisions of "CSData 1 0-getPageMetadata"
From ADF Docs
Dbeckstrom (talk | contribs) (→Usage:) |
Dbeckstrom (talk | contribs) (→Usage:) |
||
Line 63: | Line 63: | ||
<cfscript> | <cfscript> | ||
pageMeta = application.ADF.CSData.getpageMetadata(request.page.id); | pageMeta = application.ADF.CSData.getpageMetadata(request.page.id); | ||
− | if ( StructKeyExists(pageMeta.standard, "approvalStatus") AND LEN(pageMeta.standard.approvalStatus)){ | + | if ( StructKeyExists(pageMeta.standard, "approvalStatus") AND |
+ | LEN(pageMeta.standard.approvalStatus)){ | ||
pageApprovalStatus = pageMeta.standard["approvalStatus"]; | pageApprovalStatus = pageMeta.standard["approvalStatus"]; |
Revision as of 21:22, 26 March 2012
Attention: Do not change any text in the description, signature, and paramter sections.
Return to CSData_1_0
Description
Given a Page ID, getPageMetadata will return a structure containing the standard and custom metadata for a page.
Signature
public Struct getPageMetadata ( numeric pageID, numeric categoryID, numeric subsiteID, string inheritedTemplateList )
Parameters
Required | Name | Type | Description |
required | pageID | numeric | |
optional | categoryID | numeric | |
optional | subsiteID | numeric | |
optional | inheritedTemplateList | string | [Default: ] |
Usage:
Example 1: Get the approval status for the current page. Uses the standard page metadata:
<cfscript>
pageMeta = application.ADF.CSData.getpageMetadata(request.page.id);
if ( StructKeyExists(pageMeta.standard, "approvalStatus") AND
LEN(pageMeta.standard.approvalStatus)){
pageApprovalStatus = pageMeta.standard["approvalStatus"];
}
</cfscript>