Skip to content

Fields lost in link generation #50

@webian

Description

@webian

Hi @cobwebch,
I use this in Fluid

<f:cObject typoscriptObjectPath="lib.link"
           data="{
                text: ' ',
                link: '{tile.link}',
                class: 'expandAndCenter tile-link tile-image lazyload {tileImageClass}',
                style: 'background-image: url(\'/{imgPlaceholderUri}\')',
                data-src: '{imgUri}'
                }" />

and this is the lib.link Typoscript

lib.link = COA
lib.link {
    10 = TEXT
    10 {
        field = text
        typolink {
            mergeWithLinkhandlerConfiguration = 1
            parameter = {field:link}
            parameter.insertData = 1
            ATagParams = class="{field:class}" style="{field:style}" data-src="{field:data-src}"
            ATagParams.insertData = 1
        }
    }
}

The problem is that all the fields, like {field:class}, are lost in the generation of the url by linkhandler that returns only url.

I'm still trying to make a patch but actually I'm stuck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions