Kiolezo

Filter some parts of layout

Sometimes can happen that you need to view a part of your template only in homepag or only in other pages.

Kioelzo has built-in filters to let you decide where to display the content or where to hide.

A real scenario can be to display tabs or accordions on the front page of the website, hiding them in the other pages. Or maybe show a text and an image in specific pages of the website.


Let's try to show an accordion menu only in homepage

In your template find the part where you would like to show the accordion menu. Then from the sidebar, under filters container, drag Show only in homepage filter in that place.

At this point, whatever you will drag inside the filter, will be shown only on the front page of your site and not in the other pages.

how to filter layout in kiolezo 1

Let's try to show an accordion menu only in homepage

In your template find the part where you would like to show the accordion menu. Then from the sidebar, under filters container, drag Show only in homepage filter in that place.

At this point, whatever you will drag inside the filter, will be shown only on the front page of your site and not in the other pages.

how to filter layout in kiolezo 1

Now from the sidebar, under dynamic layout container drag 2 accordions menu into the filter.

If you save your layout and go to your front page, you can see the accordion menu, but if you change the page, it will not be visible.

how to filter layout in kiolezo 1

You can set four kinds of filter.

  • Show only in homepage, which shows the content only on the front page of the website.
  • Not show in homepage, which shows the content in all the pages but not on the front page of the website.
  • Show only in pages, which shows the content only in selected pages.
  • Not show in pages, which shows the content in all the pages but not in selected pages.

For the last two kinds you must select page IDs from the filter settings. To open settings clock on the setting button on the filter, then in the modal box, write page IDs. You can get page IDs in Joomla menu component, where each menu voice has written its page ID.


Filters don't apply a class or a style to hide the layout parts, just filter them by php code, so the template will not print unuseful parts, but just the needed parts to build the page.

Subscribe to our newsletter

  • Language:
  • Email: This email address is being protected from spambots. You need JavaScript enabled to view it.

EU Cookie Law: This site uses cookies to improve navigation and services offered to the visitor. Cookies and their use are automatically accepted if you choose to continue browsing this website.