ADX Content Collection type object

Available from version 5.3.3.

In AskiaScript, this object represents the collection of ADX Content within the current output. It is accessible through the CurrentADC.Contents or CurrentADP.Contents property.

See also:

 

In this topic:

Accessor

[index]

Returns the ADC Content at the specified index, within the current output.

Parameters
Examples
CurrentADC.Contents[1] ' => <ADCContent::static:tick.png>
CurrentADC.Contents[1].FileName ' => "tick.png"
CurrentADC.Contents[1].Type ' => "image"

↑ Top of page ↑

Properties

Count

Returns the count of contents within the current output.

Returns a Number.

Example
CurrentADC.Contents.Count ' => 2

↑ Top of page ↑

Methods

ToString()

Returns a string which represents the ADX Content collection in JSON notation.

Returns a String.

Examples
CurrentADC.Contents.ToString() ' => [
   {
      "type":"image",
      "fileName":"tick.png" 
      "mode":"static",
      "position":"none" 
  },
  {
     "type":"html",
     "fileName":"input.hmtl",
     "mode":"dynamic",
     "position":"placeholder" 
  }
 ]

↑ Top of page ↑

TypeOf()

Always returns "adx-contents".

Returns a String.

Examples
CurrentADC.Contents.TypeOf() ' => "adx-contents"
CurrentADP.Contents.TypeOf() ' => "adx-contents"

↑ Top of page ↑

Create your own Knowledge Base