Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Why we need to save the page twice before we can upload an image using Admin plugin?

Solved by Michel V View solution

Started by Alexander Kim 8 years ago · 3 replies · 696 views
8 years ago

If we press "Add Page" modal within admin plugin > it shows page creation modal, after we fill info, we need to click save again in order to use media field, what purpose of this?

8 years ago

Hi, did you get anywhere with this? I'm looking for the same answer.
Thanks

8 years ago Solution

Most obviously it is because the page at first is just created in the virtual world, and not saved on disk. After your 'second save', which is actually the first save to disk, the hooks like media can start doing their work.

8 years ago

You could look at it as a mother and a child,

If there's no mother there can be no child 🙂
The child needs the mother before it can get born

As soon as the mother is there to give life, there's a possibility for the child to get linked to the mother.

In a relation point of view,
There can be no childs if there is no parent available to link a child with 🙂

Hope it helps ya!

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 82 12 hours ago
General · by pamtbaau, 17 hours ago
1 55 16 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 348 5 days ago
General · by Duc , 5 days ago
3 43 5 days ago