Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Copyright
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
Copyright
Merge requests
!1
[FEATURE] xBlog Main: size for image by typoscript and plugin #6760
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[FEATURE] xBlog Main: size for image by typoscript and plugin #6760
6760_feature_image_size_mode
into
master
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Dirk Wildt
requested to merge
6760_feature_image_size_mode
into
master
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
7d1e6270
1 commit,
1 year ago
3 files
+
36
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
Resources/Private/Partials/Media/Rendering/Image.html
+
28
−
11
Options
<html
xmlns:f=
"http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
data-namespace-typo3-fluid=
"true"
>
<f:media
class=
"image-embed-item copyright@aufgequz"
file=
"{file}"
width=
"{dimensions.width}c"
height=
"{dimensions.height}c"
alt=
"{file.alternative} {file.properties.copyright -> f:format.stripTags()}"
title=
"{file.title} {file.properties.copyright -> f:format.stripTags()}"
loading=
"{settings.media.lazyLoading}"
/>
</html>
{namespace vh = Netzmacher\Xblog\ViewHelpers}
<f:variable
name=
"sizemode"
><vh:getregister
register=
"settings.flexform.pi.image.imageSizemodeSingle"
mustnotset=
"1"
/></f:variable>
<f:variable
name=
"height"
><f:cObject
typoscriptObjectPath=
"plugin.tx_xblog_pi1.settings.general.constants.image.single.height"
/></f:variable>
<f:variable
name=
"width"
><f:cObject
typoscriptObjectPath=
"plugin.tx_xblog_pi1.settings.general.constants.image.single.width"
/></f:variable>
<f:if
condition=
"{sizemode}==''"
>
<f:variable
name=
"height"
>
{dimensions.height}
</f:variable>
<f:variable
name=
"width"
>
{dimensions.width}
</f:variable>
</f:if>
<f:if
condition=
"{sizemode}=='record'"
>
<f:variable
name=
"height"
>
{dimensions.height}
</f:variable>
<f:variable
name=
"width"
>
{dimensions.width}
</f:variable>
</f:if>
<f:if
condition=
"{sizemode}=='plugin'"
>
<f:variable
name=
"height"
><vh:getregister
register=
"settings.flexform.pi.image.imageHeightSingle"
mustnotset=
"1"
/></f:variable>
<f:variable
name=
"width"
><vh:getregister
register=
"settings.flexform.pi.image.imageWidthSingle"
mustnotset=
"1"
/></f:variable>
</f:if>
<f:media
class=
"image-embed-item copyright@aufgequz"
file=
"{file}"
width=
"{width}c"
height=
"{height}c"
alt=
"{file.alternative} {file.properties.copyright -> f:format.stripTags()}"
title=
"{file.title} {file.properties.copyright -> f:format.stripTags()}"
loading=
"{settings.media.lazyLoading}"
/>
Loading