Bug #63353
closed
Media Relation from translated page properties in a workspace
Added by Jonas Enders over 10 years ago.
Updated over 2 years ago.
Description
Hi,
I have encountered a problem when reading images from the translated page properties in a workspace.
How to reproduce:
- Output the image anywhere in your template:
lib.heroimg = IMAGE
lib.heroimg {
file {
import = uploads/media/
import.data = levelmedia:-1, slide
treatIdAsReference = 1
import.listNum = 0
}
}
- Add an image in the page properties of the translation. Take a look at the frontend, the image will be shown.
- Switch to a workspace.
- Delete the newly created relation and add a new one.
No image will be shown. Neither in Workspace nor live mode.
I will try my best to find the problem and a solution, but I would be happy if someone could help.
Thank you and best regards
Jonas
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34974
- Target version set to 7.5
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34974
Could not reproduce this on current master (a18b518). Workspace preview links are currently broken, that might be part of the problem – but for live, the new image is still shown.
I also discovered an additional problem: on a translated subpage without any resources, only the original language image will be shown (instead of the translation on the original page).
- Target version changed from 7.5 to 7 LTS
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34974
Can you please describe in the commit message what this change is all about and why the change für media relations is required in the RootlineUtility? Thx
I tried to reproduce the issue, but I'm unable to create a problem:
- Have a page with default language and an additional language.
- Add two images to the 'media' field of the page translation.
- Go to workspace, delete one image, add another one.
- Have a FE TS like:
page = PAGE
page.10 = TEXT
page.10.value = HELLO WORLD!
page.20 = FILES
page.20 {
references {
table = pages
uid.data = tsfe:id
fieldName = media
}
begin = 0
maxItems = 5
renderObj = IMAGE
renderObj {
file.width = 100
file.import.dataWrap = {file:current:storage}:{file:current:identifier}
altText.data = file:current:title
wrap = <div>|</div>
}
}
-> The images are correctly shown in workspace preview (current v11 master)
- Status changed from Under Review to Needs Feedback
- Status changed from Needs Feedback to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF