.. _tutorialExtendNews: =========== Extend News =========== .. container:: row m-0 p-0 .. container:: col-12 col-md-6 pl-0 pr-3 py-3 m-0 .. container:: card px-0 h-100 .. rst-class:: card-header h3 .. rubric:: :ref:`Custom extension ` .. container:: card-body All changes listed on this page should be done in a custom extension that extends EXT:news. Learn how to set it up. .. container:: col-12 col-md-6 pl-0 pr-3 py-3 m-0 .. container:: card px-0 h-100 .. rst-class:: card-header h3 .. rubric:: :ref:`Extend FlexForms ` .. container:: card-body Influence the fields available in the plugins backend FlexForm. .. container:: col-12 col-md-6 pl-0 pr-3 py-3 m-0 .. container:: card px-0 h-100 .. rst-class:: card-header h3 .. rubric:: :ref:`Events ` .. container:: card-body Extend the code of EXT:news by using PSR-14 Events. .. container:: col-12 col-md-6 pl-0 pr-3 py-3 m-0 .. container:: card px-0 h-100 .. rst-class:: card-header h3 .. rubric:: :ref:`Hooks ` .. container:: card-body If there is no PSR-14 Event, try using a hook instead. .. container:: col-12 col-md-6 pl-0 pr-3 py-3 m-0 .. container:: card px-0 h-100 .. rst-class:: card-header h3 .. rubric:: :ref:`Demands ` .. container:: card-body Learn how to filter and sort the displayed news using demands. .. container:: col-12 col-md-6 pl-0 pr-3 py-3 m-0 .. container:: card px-0 h-100 .. rst-class:: card-header h3 .. rubric:: :ref:`Data processing ` .. container:: card-body Display news in menus using data processing .. container:: col-12 col-md-6 pl-0 pr-3 py-3 m-0 .. container:: card px-0 h-100 .. rst-class:: card-header h3 .. rubric:: :ref:`Add custom fields ` .. container:: card-body Learn how to add custom fields to news records and extend the :php:`News` model using the ProxyClassGenerator .. container:: col-12 col-md-6 pl-0 pr-3 py-3 m-0 .. container:: card px-0 h-100 .. rst-class:: card-header h3 .. rubric:: :ref:`Custom news types ` .. container:: card-body Add additional custom news types .. toctree:: :maxdepth: 5 :titlesonly: :hidden: ExtensionBasedOnNews/Index ExtendFlexforms/Index Events/Index Hooks/Index Demands/Index DataProcessing/Index ProxyClassGenerator/Index AddCustomType/Index