Skip to main content
Skip table of contents

Stringfunctions+ | Formula LISTPART

Description

This formula displays parts of an HTML list.

Formula(s)

PHP
{=LISTPART("Object attribute";Start;Length;Display type;Include surrounding HTML)}

Result

  • String

  • Array

Parameter

Parameter
Content
Format
Default value
Explanation

Object attribute

Name or ID of the attribute to be retrieved from the referenced elements

Attribute name: String

Attribute ID: Integer

 

 

Start

Non-negative index starting from 0

Integer

0

 

Length

Length of the list

Integer

0

Positive: List contains this number of elements (if possible)

Negative: Original list shortened by the number of elements

0: all (from start in each case)

Display type

Output format, as in the original, as unordered list (ul), ordered list (ol), array or the list items (li) only

Integer

DISPLAY_TYPE_ORIGINAL

Possible values:

  • DISPLAY_TYPE_ORIGINAL

  • DISPLAY_TYPE_UL

  • DISPLAY_TYPE_OL

  • DISPLAY_TYPE_ARRAY

  • DISPLAY_TYPE_LI_ONLY

Include surrounding HTML

TRUE or FALSE

Boolean

FALSE

TRUE: Surrounding HTML is included

FALSE: Only the list / list elements are included

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.