Skip to content

Commit

Permalink
Merge pull request #25 from timoschmidt/bugfix/22-flash-message-in-ba…
Browse files Browse the repository at this point in the history
…ckend-module-not-rendered-in-typo3-8

[BUGFIX] FlashMessages not working in TYPO3 8
  • Loading branch information
dkd-private-packagist committed Apr 21, 2016
2 parents 7a8c53f + 67ad8f0 commit 3e2f8bb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions Resources/Private/Partials/FlashMessages.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- The following part as="flashMessages" .. and the inner content can be remove in versions above 8 since this markup is default then -->
<f:flashMessages as="flashMessages">
<f:for each="{flashMessages}" as="flashMessage">
<div class="alert {flashMessage.class}">
<div class="media">
<div class="media-left">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-{flashMessage.iconName} fa-stack-1x"></i>
</span>
</div>
<div class="media-body">
<f:if condition="{flashMessage.title}">
<h4 class="alert-title">{flashMessage.title}</h4>
</f:if>
<div class="alert-message">{flashMessage.message -> f:format.nl2br()}</div>
</div>
</div>
</div>
</f:for>
</f:flashMessages>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
xmlns:solr="http://typo3.org/ns/ApacheSolrForTypo3/Solr/ViewHelpers"
f:schemaLocation="https://fluidtypo3.org/schemas/fluid-master.xsd">
<f:flashMessages renderMode="div" />
<f:render partial="FlashMessages" />

<h2 style="color:red">This module is still experimental and is supposed to only work with Tika Server for now.</h2>

Expand Down

0 comments on commit 3e2f8bb

Please sign in to comment.