Skip to main content

Customize the layout/tempates

Changing an existing layout.

The easiest way to change an exisisting layout of the component or module is to use template override

Simply copy

JOOMLA-ROOT/components/com_datafeeds/views/items/tmpl/default_<LAYOUT>.php

to

JOOMLA-ROOT/templates/YOUR TEMPLATE/html/com_datafeeds/items/default_<LAYOUT>.php

or for the module

JOOMLA-ROOT/modules/mod_datamenu/tmpl/<LAYOUT>.php

to

JOOMLA-ROOT/templates/YOUR TEMPLATE/html/mod_datamenu/<LAYOUT>.php

and modify the copied file.

Adding a layout

Copy an existing layout for the component

JOOMLA-ROOT/components/com_datafeeds/views/items/tmpl/default_<LAYOUT>.php

to

JOOMLA-ROOT/components/com_datafeeds/views/items/tmpl/default_<YOURNAME>.php

or for the module

JOOMLA-ROOT/modules/mod_datamenu/tmpl/<LAYOUT>(_item|_list|_custom).php

to

JOOMLA-ROOT/modules/mod_datamenu/tmpl/<YOUNAME>.php

 For the module the behaviour of the layout changes on the suffix. Layout without suffix ( default.php, search.php) display a menu, layouts with _list or _item ( top5table_list.php) display a list of items.

Changing the CSS

Add any template specific CSS to the stylesheet of your template.

The compoment does include a stylesheet to your website, to remove it copy

JOOMLA-ROOT/components/com_datafeeds/views/items/tmpl/default.php

to

JOOMLA-ROOT/templates/YOUR TEMPLATE/html/com_datafeeds/items/default.php

and remove the line with the datafeeds.css