[Solved] Add automatically(on create page) elements to Content-collection


(kemal özkan) #1

Hi there, I want to be able to edit a section in the footer. Therefore I create a NodeType “Footer” which is inline editable. Everything is working but there is something which causes trouble.

The situation forces me to add on every single page that footer node type.

Is there a way to say Neos. Add this node type automatically on your “on create” action?

Thank you.


(Daniel Lienert) #2

Hey Kemal,

I could think of three possible solutions for your problem:

  1. If the footer only conists of one ore more editable “text”, just make that texts properties of the document node instead of a separate footer node.

  2. You could configure the footer node as auto created child node, like the main content collection and as described here: http://neos.readthedocs.io/en/stable/CreatingASite/NodeTypes/NodeConstraints.html

  3. The most flexible solution would be to use the node template package: https://github.com/Flowpack/Flowpack.NodeTemplates that makes it possible to automatically create a configured structure of nodes.

Hope one of the solutions fit.

Daniel


(kemal özkan) #3

Hey Daniel thank you for your answer.
Actually I found a solution in the documentation, https://neos.readthedocs.io/en/stable/HowTos/EditableSharedFooter.html
and it was very clearly explained how to implement it.


(Bastian Heist) #4

Wow, someone actually read and found something helpful in the docs :sunglasses::+1: