Documentation

Powered by Minitek FAQ Book

Template overrides

  Important

Template overrides are not recommended as there are frequent updates and changes in the front-end template files. Updates may introduce new features or changes that break template overrides from older versions.

If you still want to use template overrides, make sure that you update the overriden files on every component update. Always check the changelog of the extension when updating.

To create a template override for a masonry widget:

  1. Create a directory com_minitekwall inside the html directory of your website template.

  2. Create a directory masonry inside the com_minitekwall directory.

  3. Copy the files

    default.php
    default_masonry.php
    default_columns.php
    default_list.php
    default_filters.php
    default_sortings.php
    default_pagination.php
    

    from

    PATH_TO_JOOMLA/components/com_minitekwall/tmpl/masonry/

    to

    PATH_TO_JOOMLA/templates/TEMPLATE_NAME/html/com_minitekwall/masonry/
  4. Rename the new files, using the same base name; for example

    override.php
    override_masonry.php
    override_columns.php
    override_list.php
    override_filters.php
    override_sortings.php
    override_pagination.php
    
  5. In the field Layout > Template, select the new template override.

  6. If you have selected a Masonry - Grid layout, you must customize the file override_masonry.php. If you have selected a Masonry - Columns layout, you must customize the file override_columns.php. If you have selected a Vertical list layout, you must customize the file override_list.php.

Was this helpful?
Loading...
3