Releases: 3xw/cakephp-attachment
Releases · 3xw/cakephp-attachment
5.3.7
5.3.6
5.3.5
5.3.4
5.3.3
5.3.2
5.3.1
5.3.0
5.2.2
What's Changed
Features
- Delete generated thumbnails on file replacement/deletion: When a file is replaced or deleted, all related thumbnails are now automatically removed from
webroot/thumbnails/ - Cache-busting version parameter: Added
versionparameter support tothumbSrc()andimage()helper methods to force browser reload after file replacement
Usage
// Add version param to bust cache after file replacement
$this->Attachment->thumbSrc([
'image' => $attachment->path,
'profile' => $attachment->profile,
'width' => 300,
'version' => $attachment->modified->getTimestamp()
]);5.2.1
What's New
Features
- Sidebar visibility option: Added
show_sidebarconfiguration option underbrowsesettings to toggle the sidebar (tags/filters) visibility in browse mode- When
show_sidebarisfalse:- Browse mode hides the sidebar and moves the upload button to the main content area
- Upload/embed modes hide the tags selection column
- Tags from
settings.atagsare automatically applied to uploads
- When
Usage
$this->Attachment->input('Attachments', [
'atags' => ['MyTag'],
'browse' => ['show_sidebar' => false],
]);