zeroseven / z7_blog

[DEPRECATED] Blog-Extension for TYPO3
https://extensions.typo3.org/extension/pagebased_blog
3 stars 1 forks source link

post.firstImage does not work #1

Closed rteinze closed 3 years ago

rteinze commented 3 years ago

In the Fluid template and partial (list item) all works fine but the post.firstImage does not. There is an image at the target page/post but the object firstImage (<f:debug>{_all}</f:debug>) keeps NULL.

srosskopf commented 3 years ago

Hey there! Thank you for using our blog extension.

The post.firstImage should be an image from the blog posts page properties. As you can see in the abstract page model here, the blog gets the first media asset and also checks if it is a valid image file type.

There are a lot of configuration variables here, so this is my first guess. Just wanted to clarify that this image should come from the page properties of a blog post page and not any content like textmedia or something.

srosskopf commented 3 years ago

Another thing: have you tried just using the post.firstImage in a or something? Sometimes the debug says it's null but it is actually there, just not in time when the debug is compiled.

srosskopf commented 3 years ago

I'll go ahead and close this issues for lack of feedback.