Project

General

Profile

Actions

Feature #49480

closed

Register values in FilesContentObject

Added by Lars Malach almost 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2013-06-27
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Its not possible to retrieve the file number or total file count in renderObj of the FILES Content Object.

To render the files differential you can use the optionSplit, but sometimes it would be useful to print the file number or work with if conditions.

Of example:

10 = FILES
10 {
    references {
        table = tt_news
        uid.field = uid
        fieldName = media
    }
    renderObj = COA
    renderObj {
        10 = TEXT
        10.value = Render first file two times
        10.if.isFalse.data = register:FILE_NUM_CURRENT

        20 = TEXT
        20.value = file
    }
}


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #51008: Additional Register values in FilesContentObjectClosed2013-08-11

Actions
Actions

Also available in: Atom PDF