Difference between revisions of "CSData 1 0-getStandardMetadata"
From ADF Docs
Dbeckstrom (talk | contribs) (→Parameters) |
Dbeckstrom (talk | contribs) (→Usage:) |
||
Line 32: | Line 32: | ||
=== Usage: === | === Usage: === | ||
Example 1: Using the page ID from a custom element, get the page metadata and find the subsite ID for the subsite in which the page is located: | Example 1: Using the page ID from a custom element, get the page metadata and find the subsite ID for the subsite in which the page is located: | ||
+ | <source lang="cfm"> | ||
<cfscript> | <cfscript> | ||
pageMeta = application.ADF.CSData.getStandardMetadata("items[i].values.mypageID"); | pageMeta = application.ADF.CSData.getStandardMetadata("items[i].values.mypageID"); | ||
Line 42: | Line 43: | ||
} | } | ||
</cfscript> | </cfscript> | ||
+ | </source> |
Revision as of 22:31, 26 March 2012
Attention: Do not change any text in the description, signature, and paramter sections.
Return to CSData_1_0
Description
Signature
public struct getStandardMetadata ( numeric csPageID )
Parameters
Required | Name | Type | Description |
required | csPageID | numeric |
Usage:
Example 1: Using the page ID from a custom element, get the page metadata and find the subsite ID for the subsite in which the page is located:
<cfscript>
pageMeta = application.ADF.CSData.getStandardMetadata("items[i].values.mypageID");
if ( StructKeyExists(pageMeta, "subsiteid") AND
LEN(pageMeta.subsiteid)){
pagesubsiteid = pageMeta.subsiteid;
}
</cfscript>