Altinn / altinn-infoportal-hugo

A new PoC implementation of altinn infoportal using Hugo + markdown.
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Nested collections path problem when creating new content #42

Closed andreasbalevik closed 2 years ago

andreasbalevik commented 2 years ago

Content types using nested collections has some problem when creating new content. Skjermbilde 2022-02-22 kl  10 19 17

The path field does not get updated with title resulting in error message. Path is pointing to the parent directory. But we want to create a new page under the parent.

Now path and title needs to manually be set for the page to be created.

andreasbalevik commented 2 years ago

Added https://github.com/netlify-labs/netlify-cms-widget-parent which enables a drop-down list for choosing parent directory. But this is a experimental widget.. but it works.

Implemented in #44

Skjermbilde 2022-02-23 kl  12 46 28