Skip to content

Commit

Permalink
TASK: Easier override of default behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandschuetz committed May 19, 2021
1 parent b28a081 commit c01ac98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Resources/Private/Fusion/Prototypes/Tag.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ prototype(CodeQ.Link:Tag) < prototype(Neos.Fusion:Component) {
# tag rendering configuration
renderDefaultTagIfNoLink = false
defaultTagName = 'span'
content = false
content = ${this.linkSource.label}

# any additional props will be applied as attributes
# feel free to use e.g. id, class or download
Expand All @@ -20,8 +20,8 @@ prototype(CodeQ.Link:Tag) < prototype(Neos.Fusion:Component) {
href = ${props.shouldRenderLinkTag ? props.linkSource.link : false}
rel = ${props.shouldRenderLinkTag ? props.linkSource.rel : false}
target = ${props.shouldRenderLinkTag ? props.linkSource.target : false}
class = ${props.class == false ? props.attributes.class : String.trim(props.class + ' ' + props.attributes.class)}
class = ${Type.isString(props.class) ? String.trim(props.class) : props.class}
}
content = ${props.content || props.linkSource.label}
content = ${props.content}
}
}

0 comments on commit c01ac98

Please sign in to comment.