Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't display inline elements #23

Closed
inawidmer opened this issue Oct 6, 2016 · 3 comments
Closed

Can't display inline elements #23

inawidmer opened this issue Oct 6, 2016 · 3 comments
Labels

Comments

@inawidmer
Copy link

Hi,

TYPO3 7.6.4
mask 2.1.1
mask_export 0.4.0

I created a linklist in mask with a repeating element for the links.

mask_element

When I use the exported content element and create multiple inline elements, the inline elements will not be displayed in the frontend.

exbase_varable_dump

mask_example_linklist_0.1.0_201610060927.zip

mask_json.zip

@IchHabRecht
Copy link
Owner

Hi Ina.

Thank you for your bug report. I tested the mask.json file you provided and exported the extension. After adding the TypoScript template and creating some links in the backend everything is shown as expected.
2016-10-06_203155
2016-10-06_203245

Can you please check you added the extension's TypoScript to your template record and you haven't changed it? It should provided the needed data processing out of the box.
Are there any other errors popping up while the frontend is generated?

@stucki
Copy link

stucki commented Oct 12, 2016

Hi Nicole! We found the cause for the problem, see Gernott/mask#45

Explanation: Our test site did not use "config.sys_language_overlay=1", which causes records with sys_language_uid=-1 ([All]) to be ignored.

The bug is most likely caused by EXT:mask which doesn't set the proper default value.

Thanks for you help and trying to solve this. As it looks like, there are no changes needed in EXT:mask_export.

@IchHabRecht
Copy link
Owner

IchHabRecht commented Oct 14, 2016

I would recommend to change the generated TypoScript to your needs:

`
tt_content.maskexamplelinklist_linklist = FLUIDTEMPLATE
tt_content.maskexamplelinklist_linklist {

file = EXT:mask_example_linklist/Resources/Private/Templates/TtContent/linklist.html
dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
dataProcessing.10 {

    if.isTrue.field = tx_maskexamplelinklist_links
    table = tx_maskexamplelinklist_links
    pidInList.field = pid
    where = parentid=###uid### AND sys_language_uid IN (###language###, -1) AND deleted=0 AND hidden=0 AND 1=1
    languageField = 0
    markers {

        uid.field = uid
        language.field = sys_language_uid
    }
    as = data_tx_maskexamplelinklist_links
}

}
`

See the change in the where clause and the added language configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants