Skip to content

Commit

Permalink
[TASK] Use EXT:rwd_media instead of app-zap/responsive-image-vh
Browse files Browse the repository at this point in the history
  • Loading branch information
smichaelsen committed May 10, 2016
1 parent d1614a1 commit 8c34d55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Configuration/TypoScript/setup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,10 @@ tt_content.stdWrap.wrap3 {
}
fieldRequired = categories
}

plugin.tx_categorizedcontent {
view {
partialRootPaths.10 = EXT:categorized_content/Resources/Private/Partials/
partialRootPaths.1462872447 = EXT:rwd_media/Resources/Private/Partials/
}
}
4 changes: 2 additions & 2 deletions Resources/Private/Templates/Content/CategoryNavigation.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html data-namespace-typo3-fluid="true" xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers" xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers" xmlns:ri="http://typo3.org/ns/AppZap/ResponsiveImageVh/ViewHelpers" xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
<html data-namespace-typo3-fluid="true" xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers" xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers" xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">

<f:layout name="Content"/>

Expand All @@ -21,7 +21,7 @@
<a href="#" data-target-category="{category.uid}">
<f:if condition="{category.tx_categorizedcontent_image}">
<v:content.resources.fal table="sys_category" field="tx_categorizedcontent_image" record="{category}" as="images">
{images.0 -> ri:image(renderLink:'false')}
<f:render partial="Utility/ResponsiveImage" arguments="{image:images.0,width:'132'}"/>
</v:content.resources.fal>
</f:if>
{category.title}
Expand Down

0 comments on commit 8c34d55

Please sign in to comment.