-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backend-Icons in Listenansicht verschwunden #765
Comments
|
@discordier need a cash label ;) |
Oh fsck.... how can we circumvent this.... :( |
We should put our cached copies into an own images sub directory within the cached assets files which are not getting cleaned by Contao. |
Um welche Icons geht es hier damit ich das am aktuellen MM testen kann... |
Egal welche. Es geht um die Integration als Kind. Die hierbei erzeugten Operation Buttons landen im Contao Cache und werden dummerweise von Contao gekillt |
@discordier was ist daran "easy pick"? was wäre zu tun? |
See my comments above. :) |
vllt verstehe ich die Sache nicht richtig aber bei
=> Icons sind noch da - siehe Screenshot |
ich habe den Test aus #765 (comment) mit einem größeren Bild - so dass in assets ein temporäres Bild abgelegt wird - wiederholt das Bild ist dann z.B. => noch da... |
Das ist seltsam und sollte nicht passieren... dann trifft er bei dir anscheinend nie den cache, das ist seltsam... |
und nu? |
Rausfinden warum bei dir der cache nicht genommen wird. |
habe mir das auf "Dateiebene" angesehen - beim Löschen/Leeren von "Bildercache leeren" wird die Datei wirklich gelöscht und sobald die (BE-)Seite aufgerufen wird, wird das Thumbnail neu erstellt... also ich würde sagen, das Issue kann zu - ich kenne auch keine weiteren "Beschwerden" zu dem Thema |
you give this the label "easy pick" - realy? |
Well, it is? Just adjust the generate image events to use a destination within our cache directory and you are done. |
ah.. o.k. you mean at https://github.com/MetaModels/core/blob/master/src/MetaModels/BackendIntegration/BackendModuleBuilder.php#L173 ? and write to |
Damit bleiben die Icons nach Leerung das Bildercaches bestehen core/src/MetaModels/BackendIntegration/BackendModuleBuilder.php Lines 169 to 181 in 437e8b6
protected function buildIcon($icon)
{
// Determine image to use.
if ($icon && file_exists(TL_ROOT . '/' . $icon)) {
- $event = new ResizeImageEvent($icon, 16, 16);
+ $event = new ResizeImageEvent($icon, 16, 16, '', 'system/modules/metamodels/assets/images/backend/' . basename($icon), true);
$this->getEventDispatcher()->dispatch(ContaoEvents::IMAGE_RESIZE, $event);
return $event->getResultImage();
}
return 'system/modules/metamodels/assets/images/icons/metamodels.png';
} ggf. noch prüfen, ob Datei auch erzeugt - return $event->getResultImage();
+ if (file_exists(TL_ROOT . '/' . $event->getResultImage())) {
+ return $event->getResultImage();
+ } |
Aber nicht bei composer update, welches den ganzen Ordner in Du darfst nicht in extension directories schreiben und auch nicht in den "normalen" image cache. |
in
gehen - wobei leider der Pfad |
This issue has been labeled with testing but got no feedback. We are reliant on feedback to prove a ticket fixed as we can not tell if the ticket has been @Hauge could you please have a final look at this and tell if your issue has been resolved? |
fixed with #1122 |
contao 3.4.4
In der Backend-Ansicht sind "Über Nacht" ohne Update die Icons in der Listenansicht verschwunden.
Hatte die MM's gestern angelegt und es wurde alles korrekt angezeigt.
Bin mir nicht sicher, ob es hiermit: #559 einen Zusammenhang gibt.
The text was updated successfully, but these errors were encountered: