From 96441f09a4c414888fc3219a55189184e9a5dcac Mon Sep 17 00:00:00 2001 From: Ryan Matthew Pierson Date: Sun, 15 Jul 2018 13:49:49 -0500 Subject: [PATCH] Documented onMediaLocate https://github.com/getgrav/grav-learn/issues/356 --- pages/04.plugins/03.event-hooks/docs.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pages/04.plugins/03.event-hooks/docs.md b/pages/04.plugins/03.event-hooks/docs.md index d5a1de355..bb3bdf833 100644 --- a/pages/04.plugins/03.event-hooks/docs.md +++ b/pages/04.plugins/03.event-hooks/docs.md @@ -36,6 +36,7 @@ Most events within Grav fire in a specific order and it is important to understa 1. [onShutdown](../event-hooks#onShutdown) 1. [onBeforeDownload](../event-hooks#onBeforeDownload) 1. [onPageFallBackUrl](../event-hooks#onPageFallBackUrl) +2. [onMediaLocate](../event-hooks#onMediaLocate) ## Core Grav Event Hooks @@ -224,3 +225,7 @@ After a folder is parsed and processed. This is fired for **every folder** in t #### onPageFallBackUrl If a route is not recognized as a page, Grav tries to access a page media asset. The event is fired as soon as the procedure begins, so plugins can hook and provide additional functionality. + +#### onMediaLocate + +Adds support for custom media locations for excerpts.