Inherits from SCField : NSObject
Declared in SCDroplinkField.h

Overview

The SCDroplinkField object identifies a Sitecore system item’s droplink field.
The field with [SCField type] is equal to “Droplink” has the SCDroplinkField type.

It provides a getter for the linked item in droplink and an asynchronous loader for reading the selected item of droplink.

Tasks

Properties

fieldValue

The value of the field. [SCDroplinkField fieldValue] is SCItem object. It is nil by default, so use [SCDroplinkField readFieldValueOperation] to load selected item. SCDroplinkField object does not own loaded item to avoid retain cycles.

@property (nonatomic, readonly) id fieldValue

Discussion

The value of the field. [SCDroplinkField fieldValue] is SCItem object. It is nil by default, so use [SCDroplinkField readFieldValueOperation] to load selected item. SCDroplinkField object does not own loaded item to avoid retain cycles.

Declared In

SCDroplinkField.h

Instance Methods

readFieldValueOperation

Used for loading the selected item in droplink.

- (SCAsyncOp)readFieldValueOperation

Return Value

SCAsyncOp block. Call it to get the expected result. The SCAsyncOpResult handler’s result is SCItem object or nil if error happens.

Discussion

Used for loading the selected item in droplink.

Declared In

SCDroplinkField.h