Content Filter


  • Version : 1.0.4
  • |
  • Joomla : 2.5 3

Overview

As the name itself says, it filters out the content. It is a Joomla! plugin which filter the content of an article according to users' Joomla! usergroup. There are several cases when you want to show some content to particular type of users and want to hide some content from particular type of users. Content Filter plugin does exactly same as above mentioned. It filter the content of Joomla Article, K2 item, Seblod, FlexiContent or any other content which trigger the event "onContentPrepare" and "onContentBeforeDisplay". Currently it is tested with these four extensions only. We'll update the list of supported extensions as testing gets completed.

What is Content Filter?

It is a Joomla! plugin which filter the content of an article according to users' Joomla! usergroup. Filtering the content means, you can show or hide some part of article from particular group of Joomla! usergroups. You can create your own group called token, so that you need not to change the article content, whenever you want to update the usergroups. Lets see how we can use this pllugin.

How to use Usergroup Selector?

It is very easy to use this plugin. But still we have listed all the steps with screenshots. Just follow the steps below and you are done with it.

  1. Download the plugin from Page. You are required to be logged in while downloading the plugin. If you are not registered with us then you can sign up from this.
  2. Install the downloaded plugin in your Joomla! setup.
  3. Go to plugin manager and search for the plugin "Content Filter". Its a content plugin. Now edit that plugin for enabling it and for creating some tokens, which can be used in Article.
  4. Under basic options tab, a text box and a select box will be displayed. Enter the token name in the text box and select usergroup(s) in select box. For example you want to filter(show or hide) the content for Administrator users, then you can create token "ADMIN" for "Administrator, Super User".
    Parameters Configuration
  5. Now edit the article,in which content should be filtered out according to token you created. In the article you need to use syntax like {f90filter TOKEN ACTION} Some Content {/f90filter} . Here
    • f90filter : is keyword which is required for the plugin to identify that, plugin need to work.
    • TOKEN : is the name of selected usergroups, which you have configured in plugin.
    • ACTION : is the way, the content should be filtered. There are two option available
      • SHOW : show the content if user has the required usergroup(s). (default)
      • HIDE : hide the content if user has the required usergroup(s).
      Article
  6. Now got to that article page at front-end and check the content. If you have set action "Hide" and you are not logged in as user who does not have required usergroup, then the content will not be visible. If you have set action "SHOW" and you are not logged in as user who does not have required usergroup, then the content will visible.

How to add or remove particular usergroup from filter token?

Just go to plugin manager and edit basic options of plugin "Content Filter". Here you need to add or remove any Joomla! usergroup from required token.

How to remove filter token?

Just go to plugin manager and edit basic options of plugin "Content Filter". Here you need to empty the token and its usergroup ans save the plugin. Empty token will be removed from the configuration.

Content Filter Pro

  • You can filter the content by using username also. For that you need to use content as {f90filter USERNAME username1,username2,username3 SHOW}Content to Display {/f90filter}
  • You can filter the content by using User ids also. For that you need to use content as {f90filter USERID userid1,userid2,userid3 SHOW}Content to Display {/f90filter}
  • For these type of filters, you need to purchase Content Filter Pro.

Important Note

You must take care of proper html syntax while using filter tokens in html. Please cross check the html by toggling editor content. Html between {f90filter}{/f90filter} will be altered while rendering it.
Cron Job Starts