[TYPO3-english] Bug or typoscript-problem?
Christoph Werner
info at wortvampir.de
Sun Nov 13 12:13:48 CET 2016
Hi all!
I´ve discovered a strange behavior and I´m not sure if its an TYPO3-bug or an issue with my typoscript.
Disclaimer: I´m an integrator, not an programmer.
I´ve changed the output of the standard image-element to get it wrapped by the category id. It works fine with one language.
When adding a second language I´ve translated the categories (but not the metadata of the pictures) and it worked fine too, the uids of the translated categories showed up.
Now the strange part: when adding new images AFTER the translation of the categories, I don´t get an categoryid output for theses images. Deleting all caches doesnt help. The "old" images still got the right output, only for the new ones it failed.
Adding translated metadata doesnt help.
Below is my typoscript. Has anybody any solution?
Thx in advance!
Best,
Chris
tt_content.image.20.1.stdWrap {
prepend = COA
prepend {
10 = TEXT
10.value = <div class="filteritem" data-category="
20 = CONTENT
20 {
table = sys_category
select {
pidInList = 32 #pid where I store the categories
selectFields = sys_category.*
join = sys_category_record_mm ON sys_category_record_mm.uid_local = sys_category.uid JOIN sys_file_metadata ON sys_file_metadata.uid = sys_category_record_mm.uid_foreign
where.data = file:current:originalUid
where.intval = 1
where.wrap = sys_file_metadata.file=|
orderBy = sys_category_record_mm.sorting_foreign
languageField = sys_category.sys_language_uid
}
renderObj = TEXT
renderObj {
#field = title
field = uid
noTrimWrap = |, ||
#wrap = |
}
stdWrap.substring = 1
stdWrap.ifEmpty.cObject = TEXT
stdWrap.ifEmpty.cObject.value = no-category-found
}
30 = TEXT
30.value = ">
}
append = COA
append {
10 = TEXT
10.value = </div>
}
}
temp.defaultImage < tt_content.image.20
More information about the TYPO3-english
mailing list