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

TASK: Remove deprecated asset argument usage #22

Merged
merged 1 commit into from
Jan 16, 2017

Conversation

gerhard-boden
Copy link
Contributor

Replace asset with image within various templates.
see: neos/neos-development-collection#1371

@bwaidelich bwaidelich merged commit df8f204 into neos:3.0 Jan 16, 2017
@gerhard-boden gerhard-boden deleted the deprecate-asset-argument branch January 16, 2017 10:25
<f:if condition="{node.properties.chapterImage}">
<media:image asset="{node.properties.chapterImage}" class="pull-right" alt="{node.properties.chapterImage.alternativeText}" title="{node.properties.chapterImage.title}" />
</f:if>
<media:image image="{node.properties.chapterImage}" class="pull-right" alt="{node.properties.chapterImage.alternativeText}" title="{node.properties.chapterImage.title}" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the condition removed here (but not in ChapterMenu.html)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, merged. Whatever…

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In ChapterMenu.html and CarouselItem.html there is an else part, too so it would change behavior

Copy link
Contributor Author

@gerhard-boden gerhard-boden Jan 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kdambekalns We don't need the condition anymore, since the Image ViewHelpers now behaves correctly and gracefully falls back to empty string, if no image is present:
neos/neos-development-collection#1203

and about the other files: what @bwaidelich said

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

Successfully merging this pull request may close these issues.

3 participants