Documentation

Powered by Minitek FAQ Book

Template overrides

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.


  Important

Updates may introduce new features that break template overrides from older versions. In this case, you must copy the new template files to your template override. Always check the changelog of the extension when updating.

Was this helpful?
Loading...
1