From bfe9cdc3da3cf0ba69fb481c7ae2f7e9f3885897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 10 Sep 2024 10:53:34 +0200 Subject: [PATCH] Update content-adapters.md --- content/en/content-management/content-adapters.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/content-management/content-adapters.md b/content/en/content-management/content-adapters.md index 4d5bd0890..a88bdba5f 100644 --- a/content/en/content-management/content-adapters.md +++ b/content/en/content-management/content-adapters.md @@ -91,6 +91,10 @@ Returns the `Site` to which the pages will be added. {{ .Site.Title }} {{< /code >}} +{{% note %}} +Note that the `Site` returned isn't fully built when invoked from the content adapters; if you try to call methods that depends on pages, e.g. `.Site.Pages`, you will get an error saying "this method cannot be called before the site is fully initialized". +{{% /note %}} + ###### Store Returns a persistent “scratch pad” to store and manipulate data. The main use case for this is to transfer values between executions when [EnableAllLanguages](#enablealllanguages) is set. See [examples](/methods/page/store/).