Difference between revisions of "CSData 1 0-getStandardMetadata"

From ADF Docs
Jump to: navigation, search
(Description)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://ekygelymib.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 
----
 
=[http://ekygelymib.co.cc CLICK HERE]=
 
----
 
</div>
 
 
__NOTOC__
 
__NOTOC__
 
Attention: Do not change any text in the description, signature, and paramter sections.
 
Attention: Do not change any text in the description, signature, and paramter sections.
Line 13: Line 5:
  
 
== Description ==
 
== Description ==
 +
Given a Page ID returns the standard metadata for the page.
  
 
== Signature ==  
 
== Signature ==  
public struct &lt;strong&gt;getStandardMetadata&lt;/strong&gt; ( numeric csPageID )
+
public struct <strong>getStandardMetadata</strong> ( numeric csPageID )
  
 
== Parameters ==  
 
== Parameters ==  
  
&lt;table id=&quot;lib-params&quot;&gt;
+
<table id="lib-params">
&lt;tr class=&quot;header&quot;&gt;
+
<tr class="header">
&lt;td&gt;Required&lt;/td&gt;
+
<td>Required</td>
&lt;td&gt;Name&lt;/td&gt;
+
<td>Name</td>
&lt;td&gt;Type&lt;/td&gt;
+
<td>Type</td>
&lt;td&gt;Description&lt;/td&gt;
+
<td>Description</td>
&lt;/tr&gt;
+
</tr>
 
 
 
 
&lt;tr&gt;
+
<tr>
 
 
&lt;td class=&quot;required&quot;&gt;required&lt;/td&gt;
+
<td class="required">required</td>
 
 
&lt;td&gt;csPageID&lt;/td&gt;
+
<td>csPageID</td>
&lt;td&gt;numeric&lt;/td&gt;
+
<td>numeric</td>
&lt;td&gt;&lt;/td&gt;
+
<td></td>
&lt;/tr&gt;
+
</tr>
 
 
&lt;/table&gt;
+
</table>
 +
=== Usage: ===
 +
Example 1: Using the page ID from a field in a custom element, get the page metadata for the page and find the subsite ID for the subsite in which the page is located:
 +
<source lang="cfm">
 +
<cfscript>
 +
        pageMeta =  application.ADF.CSData.getStandardMetadata("items[i].values.mypageID");
 +
if ( StructKeyExists(pageMeta, "subsiteid") AND LEN(pageMeta.subsiteid)){
 +
    pagesubsiteid = pageMeta.subsiteid;
 +
        }
 +
</cfscript>
 +
</source>

Latest revision as of 22:35, 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 returns the standard metadata for the page.

Signature

public struct getStandardMetadata ( numeric csPageID )

Parameters

Required Name Type Description
required csPageID numeric

Usage:

Example 1: Using the page ID from a field in a custom element, get the page metadata for the page 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>