문제

is it possible to force the children of a defined page type always to show as list? And if yes, who? Can't figure out who to do this.

Thank you in advance

도움이 되었습니까?

해결책

it is possible, however its pretty trick to get it working properly.
It is not only a lot of work to get it done right, it will also bring certain problems with it which you will have to overcome (eg the Preview Split Screen will not work, you will have to apply some custom javascript I think), so consider this carefully.

Have a look at the silverstripe-blogger module, micmania1 has done a pretty good job there. He uses a GridField to display the blog children (BlogPosts) if you set the config like this:

BlogPost:
  show_in_sitetree: false

you can find the module on Packagist and GitHub

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top