Changing the appearance on the website ###################################### We'll start from an example to explain how it works. On the `Novius OS `__ website, we personalised how the blog posts are displayed. Here's how it looks like: Default design of the 'Blog' application : .. image:: images/blog_display_original.png :alt: Default list of the 'Blog' application :align: center Personalised design on the Novius OS.org website (our goal): .. image:: images/blog_display_custom.png :alt: Personalised list of the 'Blog' application :align: center Changing the view ***************** 1\ :sup:`st`\ solution: extending the view =========================================== Thanks to the cascading file system, we can copy the original :file:`noviusos_blognews::views/front/post/item.view.php` file in our :file:`local` directory: :file:`local::views/apps/noviusos_blognews/front/post/item.view.php` .. code-block:: html+php
$item)) ?> $item)) ?>
$item)) ?> $item)) ?>
We deleted the thumbnail, author, categories and comment count from this view file. 2\ :sup:`nd`\ solution: extends the configuration ================================================== The blog application allows to disable some elements from its configuration. In our situation, it's possible for every elements we don't want to display, expect the thumbnail. When using this blog configuration file, it acts on both the list and the full item view, which is not really what we want (so this solution is just shown as an example). Thanks to the cascading file system, we can copy the original :file:`noviusos_blognews::config/config.php` file in our :file:`local` directory: :file:`local::config/apps/noviusos_blognews/config.php` .. code-block:: php array( 'show' => false, ), 'authors' => array( 'show' => false, ), 'comments' => array( 'show' => false, ), ); Adding the CSS ************** 1\ :sup:`st`\ solution: extending the view =========================================== We create the :file:`local::views/apps/noviusos_blognews/front/post/list.view.php` file: .. code-block:: php `__ website, we created our own templates, which are bundled with the appropriate CSS files to change how the blog is displayed.