Commit Graph

7456 Commits

Author SHA1 Message Date
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
77d675f167 Composer update 2022-03-31 21:32:37 +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
Matias Griese
b06e925f99 Framework\File locking fixes 2022-03-31 21:29:25 +03:00
Matias Griese
e9351656ef Composer update 2022-03-31 17:06:41 +03:00
Matias Griese
2ea39309b6 Composer update 2022-03-31 11:30:35 +03:00
Matias Griese
469b5f0c43 Added method AbstractMedia::updateIndex() 2022-03-31 11:25:19 +03:00
Matias Griese
1c0ed43afa Fixed XSS check not detecting onX events without quotes 2022-03-30 13:26:11 +03:00
Matias Griese
5ccf28fffc Merge branch 'develop' of github.com:getgrav/grav into feature/media 2022-03-30 12:01:42 +03:00
Matias Griese
a092aed4ed When saving yaml and markdown, create also a cached version of the file and recompile it in opcache 2022-03-30 12:00:59 +03:00
Matias Griese
d63e51d66b Merge branch 'develop' of github.com:getgrav/grav into feature/media
 Conflicts:
	CHANGELOG.md
2022-03-29 21:35:34 +03:00
Matias Griese
7c2b21fb60 Fixed missing changes in yaml & markdown files if saved multiple times during the same second because of a caching issue 2022-03-29 21:35:02 +03:00