Commit Graph

5520 Commits

Author SHA1 Message Date
Matias Griese
914d0b0cfd Prepareations to make medium immutable 2022-05-05 19:20:54 +03:00
Matias Griese
9c90a62b6c Updated media class interfaces to PHP 7.4 standards 2022-05-05 19:17:01 +03:00
Matias Griese
f5d2b546dc Medium no longer extends Data 2022-05-05 12:05:19 +03:00
Matias Griese
a3bf4089f3 Merge branch 'develop' into feature/media 2022-04-28 12:29:32 +03:00
Andy Miller
c2a8145f2c prepare for release 2022-04-25 14:50:34 -06:00
Matias Griese
4d94e2c740 Merge branch 'develop' of github.com:getgrav/grav into feature/media 2022-04-25 18:27:40 +03:00
Matias Griese
26e4768bc5 Fixed default collection ordering in pages admin 2022-04-25 18:27:21 +03:00
Matias Griese
a52b4cbd8e Fixed error when resizing image 2022-04-22 20:28:04 +03:00
Matias Griese
f8ef9c41c5 Postpone image processing to cache image requests 2022-04-21 20:26:21 +03:00
Matias Griese
34653a6b4c Media: Prevent fatal error if object doesn't exist (pt 3) 2022-04-21 13:44:24 +03:00
Matias Griese
85aa55fabf Media: Prevent fatal error if object doesn't exist (pt 2) 2022-04-20 21:44:12 +03:00
Matias Griese
34c9888ba9 Media: Prevent fatal error if object doesn't exist 2022-04-20 21:20:03 +03:00
Matias Griese
7b99d905ae Added getDebugger() method into AbstractMedia 2022-04-19 19:35:11 +03:00
Matias Griese
da7500cb0e Composer update 2022-04-19 11:04:05 +03:00
Matias Griese
513b51e59d Merge branch 'develop' of github.com:getgrav/grav into feature/media
 Conflicts:
	composer.lock
2022-04-19 10:57:06 +03:00
Matias Griese
4464f29169 Composer update 2022-04-19 10:56:41 +03:00
Matias Griese
bbf2f34ea1 Interface updates 2022-04-19 10:51:39 +03:00
Matias Griese
44eed37bc3 Continue filename vs realname separation in media 2022-04-14 17:06:44 +03:00
Matias Griese
52d2850519 Reworked media logic to separate image name from filename 2022-04-14 12:10:24 +03:00
Matias Griese
e1901d8385 Obey media ordering 2022-04-12 14:17:03 +03:00
Matias Griese
2921366907 Implemented media ordering by field 2022-04-12 13:16:28 +03:00
Matias Griese
5f3747ff94 Fixed {{ image.url }} 2022-04-08 21:11:48 +03:00
Matias Griese
bd3b2baaa4 Fixed remote URLs in markdown if using subfolder setup (also with inner twig) 2022-04-08 20:35:55 +03:00
Matias Griese
ae3465646c Fixed remote URLs in markdown if using subfolder setup 2022-04-08 20:13:29 +03:00
Matias Griese
f3e20dd4cd Fixed preview in admin 2022-04-08 18:58:17 +03:00
Matias Griese
f2bc892cb4 Bug fixes for media 2022-04-08 14:47:15 +03:00
Matias Griese
1b7531d111 Added debug messages for soft errors 2022-04-08 13:20:10 +03:00
Matias Griese
95437011e5 Fixed fatal error if the media file doesn't exist 2022-04-08 12:43:43 +03:00
Matias Griese
bbe4e38353 Fixed media index resetting 2022-04-07 20:24:11 +03:00
Matias Griese
d63112e767 Move Media::path() into AbstractMedia 2022-04-07 18:03:35 +03:00
Matias Griese
d96992fe25 Better error handling on media index 2022-04-07 16:28:16 +03:00
Matias Griese
0a5dfb5044 Added method AbstractMedia::getName() 2022-04-07 15:23:42 +03:00
Matias Griese
db5a6f6616 Fixed image links 2022-04-07 13:55:57 +03:00
Matias Griese
b2e780135c Minor cleanup on ImageMedium 2022-04-06 21:23:34 +03:00
Matias Griese
16851ef826 Fixed URLs for remote medium 2022-04-06 21:04:16 +03:00
Matias Griese
409098f525 Fix in MediaTrait 2022-04-06 19:30:34 +03:00
Matias Griese
236669c9a5 Fixed some phpstan issues with the new code 2022-04-06 18:48:38 +03:00
Matias Griese
6b23de986d Implemented multiple media support for Page
Move common methods from FlexMediaTrait to MediaTrait
2022-04-06 17:16:12 +03:00
Matias Griese
fb98aa692b Remove index metadata on media delete 2022-04-05 20:16:44 +03:00
Matias Griese
5e9033ef8a Fixed loading media index 2022-04-05 20:08:39 +03:00
Matias Griese
c992721530 Merge branch 'develop' of github.com:getgrav/grav into feature/media 2022-04-05 19:59:17 +03:00
Matias Griese
bd2ae69968 Fixed field meta for media 2022-04-05 19:40:26 +03:00
Matias Griese
b0fd74960a Load media info from media.json 2022-04-05 14:00:23 +03:00
Matias Griese
258d7473bc Added has_env() twig function to test if environmental variable is defined 2022-04-01 21:52:26 +03:00
Matias Griese
17d4796def Media index fix 2022-04-01 15:03:17 +03:00
Matias Griese
674991085f Fixed relative path to media index folder 2022-04-01 14:50:30 +03:00
Matias Griese
1559b6f3ec Added optional $field parameter to FlexMediaTrait::deleteMediaFile() method 2022-04-01 14:13:45 +03:00
Matias Griese
9fe7f9e666 Fixed index updating on copyUploadedFile(), deleteFile() and renameFile() 2022-03-31 22:02:49 +03:00
Matias Griese
20e7166eed Fixed Utils::resolveTokenPath() with @variable@ not working properly 2022-03-31 21:32:28 +03:00
Matias Griese
f4dd10a439 Improve media index so it works with multiple external locations 2022-03-31 21:30:25 +03:00