Conditional Content

Restrict content based on your conditions in Joomla!

  • Last updated: 26-Apr-2018
  • Version: 2.2.2
  • Types: System plugin Editor button plugin

Do you like Conditional Content?

Rate it!

Frequently Asked Questions about Conditional Content

The {show} / {hide} tags are not being converted

The Conditional Content plugin is not published

Check if the Conditional Content plugin is published. Go to Extensions >> Plugin manager and search for the system plugin System - Regular Labs - Conditional Content. Then publish it.

There is markup on the {component} tags

If you have copy/pasted code directly into your editor, you might also have copied along hidden HTML tags. So this will also cause the {show} / {hide} tags to break:

{<span>show</span> ...}

Remove the extra styling or other html tags around and in the tags that might cause problems.

How does caching affect Conditional Content?

Depending on how you set up caching in your Joomla setup, the content in which you place the {show} or {hide} tags can be cached too.
This may have an undesired affect on what content is shown. This also depends on what conditions you use.

Joomla generally caches pages on a page (url) and language level. So it should not matter when that content is cached, Conditional Content will still output what you expect.

For other conditions, you might want to change some stuff in how the content is cached.
When using the Conditional Content tags in a module, you could for instance switch off the caching for that module.
In some 3rd party caching extensions you can also switch off caching for certain scenarios.

I want to use a condition for something that is not available

If you are using the FREE version, see if the condition is available in the PRO version.

In the PRO version there is also the ability create a condition using custom PHP code. This gives you the opportunity to show/hide your content based on just about anything you can think of. You just need to know what PHP code you should use.

With PHP you can call on all data/information available in the variables, url, database, etc. And then do your checks on this data. You can tell Conditional Content to show/hide the content by ending the PHP code with a return true or false based on your checks.

For examples and ready-to-use PHP scripts, please see The PHP Assignment Guide.

Installation

How can I install/upgrade Conditional Content?

You can either install Conditional Content by using the core extension manager available in the Joomla! Administrator Control Panel, or by using the powerful Regular Labs Extension Manager.

Note: When updating Conditional Content, you do not need to uninstall it first. The package will update all the files automatically.

Keep in mind that when you update to a major new version (or uninstall first), you might lose some configuration settings.

Conditional Content won't install...

If you have problems installing Conditional Content, please try the manual installation process as described here: docs.joomla.org/Installing_an_extension

How can I uninstall Conditional Content?

You can either uninstall Conditional Content by using the core extension manager available in the Joomla! Administrator Control Panel, or by using the powerful Regular Labs Extension Manager.

If you no longer use any Regular Labs extensions, you can also uninstall the Regular Labs Library plugin by using the Joomla! core extension manager.

What are the minimum requirements?

Conditional Content will only work correctly if your setup meets these requirements:

  • Up-to-date version of Joomla:
    • Joomla 3.7.0 or higher
  • PHP 5.4 or higher
  • MySQL 5 or higher

Important: I can only provide support for setups that:

  • meet the above requirements;
  • do not have extension files or Joomla! core files which have been altered in any way.

Where can I download earlier versions?

You have access to all previous free versions of all extensions on this website.

If you have a subscription to an extension, you can also download any previous pro version of that extension.

If you do not have a valid subscription, you can download any pro version that is older than 1 year.

You can find old versions in the changelog.

Note: Please note that I am unable to provide support on old versions! (whether you have a subscription or not).

How can I downgrade to an earlier version of Conditional Content?

If for some reason you need to install an older version, it is best to uninstall the extension first.

You will also have to uninstall the Regular Labs Library system plugin.

After that you can simply install the older version zip file using the Joomla! installer.

Note: Please note that I am unable to provide support on old versions!

How can I upgrade from Joomla 2.5 to Joomla 3?

The upgrade of Joomla itself is a one-click process. But that just takes care of Joomla.

Many templates and extensions will not work the same or at all after upgrading to Joomla 3.

I personally advise against using the built-in upgrade process, and advise starting from scratch by installing a fresh copy of Joomla 3.

If you do want to upgrade Joomla 2.5 to Joomla 3, you will need to do this with regards to the Regular Labs extensions you have installed:

  1. Disable or uninstall all Regular Labs extensions.
    (Uninstalling Regular Labs extensions will make you lose any global configuration settings for that extension. You will not lose any saved items)
  2. Upgrade Joomla 2.5 to Joomla 3.
  3. Re-install all Regular Labs extensions you want installed.

For a detailed step-by-step migration process, see: https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration

Licensing

Under what license are Regular Labs extensions released?

All free and paid Regular Labs extensions are released under the Open Source GNU GPL v2.0 license.

See the Terms & Conditions for additional terms.

Regular Labs Library

What is the Regular Labs Library?

The Regular Labs Library is a Joomla! library and system plugin that is installed along with every Regular Labs extension.

This plugin contains all the common functions and language strings that the Regular Labs extensions use.

If you use any Regular Labs extensions, this plugin must be installed and published. They will not function correctly or they will not function at all without it.

Do I still need the NoNumber Framework plugin?

The NoNumber Framework has been replaced with the Regular Labs Library.

It is however not possible for my installer to check if a user has any custom code (in custom extensions, overrides or templates) that is using and relying on functionality from the NoNumber Framework.
This is the reason the NoNumber Framework does not get uninstalled automatically.

The NoNumber Framework can safely be uninstalled if your do not have any custom code using it.

More Questions

I cannot find an answer to my question

Is there no answer to your question in this list, please try out these options:

  • General FAQs
    For general questions see the Pre-Sale Questions & Answers.
  • Tooltips
    All settings/options for the installed extensions have tooltips that explain what that setting is for. That should give you enough information to know how to use it.
  • Google
    Google is your friend! If you have some problem, get an error, have a question, try out Google. It usually gives you enough feedback to find an answer.
  • Support Forum
    For more specific questions or feedback, please use the Support Forum.
    For extension support you will need a valid subscription.
    For Bug Reports and Pre-Sale questions you do not need a subscription.