I found the solution to my problem and i will explain it in detail so if anyone else has the same problem, he can find the answer.
The problem could be very common if someone using FlexForm settings.
On my List view i have an <f:if>
statement, where i evaluate if the creation date is less than 30 days. I made it flexible by letting the user to define the time on his own. In order to let the user to do that, you need to add the setting on your FlexForm. So on my FlexForm, i had this:
<settings.timeToGetOld>
<TCEforms>
<label>Number of days that stays as "New"</label>
<displayCond>FIELD:switchableControllerActions:=:ImmobilieImport->list;ImmobilieImport->show</displayCond>
<config>
<type>input</type>
<size>6</size>
<max>6</max>
<eval>int</eval>
<default>30</default>
</config>
</TCEforms>
</settings.timeToGetOld>
FIELD:switchableControllerActions:=:ImmobilieImport->list;ImmobilieImport->show
This is actually ONLY the List View and it is written that way cause it is "Controller action combinations".
On my controller and list action:
$this->view->assign('settings', $this->settings);
and then on my fluid:
f:if condition="{f:format.date(date: '{immobilieImport.creationDate}', format: 'Y-m-d')} > {f:format.date(date: 'now-{settings.timeToGetOld} days', format: 'Y-m-d')}"><span class="new_object">New</span>
The problem appeared when i tried to use that evaluation on my Detail View. Since i haven't specified any setting field for the Detail View whatsoever, the Fluid Engine could't process the evaluation so it through an error by not displaying anything. Given the fact that it reads the document Top to Bottom, when the Fluid Engine encountered the problem, it stopped.
After i figured out what the problem was, i've added one more setting on my FlexForm:
<settings.timeToGetOldDetailView>
<TCEforms>
<label>Number of days that stays as "New"</label>
<displayCond>FIELD:switchableControllerActions:=:ImmobilieImport->show</displayCond>
<config>
<type>input</type>
<size>6</size>
<max>6</max>
<eval>int</eval>
<default>30</default>
</config>
</TCEforms>
</settings.timeToGetOldDetailView>
Now i've changed the displayCond
only to the Detail View (Show) and i've changed my Fluid (Show.html) to {settings.timeToGetOldDetailView}
too:
f:if condition="{f:format.date(date: '{immobilieImport.creationDate}', format: 'Y-m-d')} > {f:format.date(date: 'now-{settings.timeToGetOldDetailView} days', format: 'Y-m-d')}"><span class="new_object">New</span>
I also added this on my Controller:
$this->view->assign('settings', $this->settings);
Everything now works fine.
config.no_cache = 1
is all displayed correctly? Then you maybe have ancHash
issue. – René Pflamm