Project

General

Profile

Actions

Feature #66697

closed

Add UpperCamelCase and LowerCamelCase to stdWrap.case

Added by Frans Saris about 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
TypoScript
Target version:
Start date:
2015-05-01
Due date:
% Done:

100%

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

Description

To make the following typoscript possible we need a UpperCamelCase and LowerCamelCase string conversion in typoscript.

tt_content = CASE
tt_content {
    key {
        field = CType
    }

    my_custem_ctype =< lib.userContent
    my_custom_ctype {
        file = EXT:site_base/Resources/Private/Templates/SomeOtherTemplate.html
        settings {
            extraParam = 1
        }
    }

    default =< lib.userContent
    default {
        file = TEXT
        file.field = CType
        file.stdWrap.case = uppercamelcase
        file.wrap = EXT:site_base/Resources/Private/Templates/|.html
    }
}

or with #66111 merged:

tt_content = CASE
tt_content {
    key {
        field = CType
    }

    my_custem_ctype =< lib.userContent
    my_custom_ctype {
        templateName = CustomName
        settings {
            extraParam = 1            
        }
    }

    default =< lib.userContent
    default {
        templateName = TEXT
        templateName.field = CType
        templateName.stdWrap.case = uppercamelcase
    }
}
Actions

Also available in: Atom PDF