Issue Feature Closed

#66697Add UpperCamelCase and LowerCamelCase to stdWrap.case

Frans Saris 05/01/15, 08:18 updated 10/19/17, 21:25

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
    }
}

Reviews 1