Bug #72012
closed
More than 5 Instances of extbase-Plugin cause erratic output in list-View
Added by Matthias Hueber almost 9 years ago.
Updated over 8 years ago.
Description
A Plugin based on extbase causes erratic output when inserting more than 5 instances.
Single Records are listed twice or three times within the plugin-instance which is the sixth or seventh one on a page when using list-Mode.
The Standard-Controller list and the findAll-Function is used.
System: TYPO3 6.2.14 // extbase 6.2.0
Can you please the provide you controller code? What does your Fluid template do, just a loop?
Please also test with 6.2.15
Markus Klein wrote:
Can you please the provide you controller code? What does your Fluid template do, just a loop?
Thank you for the quick answer!
I'm using the standard code, provided by the extbase-plugin:
/**
* action list
*
* @return void
*/
public function listAction() {
$sibuMitarbeiters = $this->sibuMitarbeiterRepository->findAll();
$this->view->assign('sibuMitarbeiters', $sibuMitarbeiters);
}
The Fluid-Template looks like this:
<f:layout name="Default" />
This Template is responsible for creating a table of domain objects.
If you modify this template, do not forget to change the overwrite settings
in /Configuration/ExtensionBuilder/settings.yaml:
Resources:
Private:
Templates:
List.html: keep
Otherwise your changes will be overwritten the next time you save the extension in the extension builder
<f:section name="main">
<section class="widgets row" id="sibunet">
<f:for each="{sibuMitarbeiters}" as="sibuMitarbeiter">
<article class="widget two columns">
<a class="quickinfo tooltip" href="#">
<img src="fileadmin/user_upload/info.png" title="Weitere Infos zu {sibuMitarbeiter.name}" alt="Weitere Infos zu {sibuMitarbeiter.vorname} {sibuMitarbeiter.name}" />
<span>
<img class="callout" src="fileadmin/design/img/callout.gif" /><strong>E-Mail:</strong> {sibuMitarbeiter.email}<br><strong>Telefon:</strong> {sibuMitarbeiter.telefon}
</span>
</a>
<div class="grow pic">
<f:if condition="{sibuMitarbeiter.bild}">
<f:then>
<f:image src="{sibuMitarbeiter.bild.originalResource.publicUrl}" width="360px" />
</f:then>
<f:else>
<f:image src="fileadmin/user_upload/keinbild.jpg" width="360px" />
</f:else>
</f:if>
</div>
<div class="widget-banderole"></div>
<div class="widget-banderole-text">
<f:link.action pageUid="82" action="show" arguments="{sibuMitarbeiter : sibuMitarbeiter}">
{sibuMitarbeiter.vorname} {sibuMitarbeiter.name}
</f:link.action>
</div>
<div class="widget-content">
<f:format.html>{sibuMitarbeiter.aufgaben}</f:format.html>
</div>
</article>
</f:for>
</section>
</f:section>
Could you please edit your comment and wrap the code in pre-tags, then we would have better output here.
One thing I already saw (which is not related though) is that you use <section class="widgets row" id="sibunet">
, so if you insert your plugin more than once you have invalid HTML, since the id
is defined multiple times.
Markus Klein wrote:
Could you please edit your comment and wrap the code in pre-tags, then we would have better output here.
One thing I already saw (which is not related though) is that you use <section class="widgets row" id="sibunet">
, so if you insert your plugin more than once you have invalid HTML, since the id
is defined multiple times.
That's right, originally it was not intended to be used more than once within a page but users sometimes play their own tunes..
- Status changed from New to Closed
Also available in: Atom
PDF