问题
We are in a situation where we have pages of the news template type, that can carry any number of nodes of the news_item template type. In effect they should only ever carry nodes of that type and that type alone, and nodes of the news_item type should only be created under nodes of the news type. Thus, the "available templates" for a user when he/she tries to create new content under a news node should only be a news_item.
Is it possible to enforce this somewhere? For instance as some kind of attribute in the news_item and news xml files?
回答1:
Currently that's not possible. There is quite an old issue on github describing that, but it had never a high enough priority for us to implement it.
来源:https://stackoverflow.com/questions/44541996/sulu-cms-is-it-possible-to-restrict-the-creation-of-nodes-of-a-certain-type-onl