conditionalcontent Conditional Content

Restrict content based on your conditions in Joomla!

  • Last updated: 23 Feb 2021
  • Version: 2.8.4
  • Types: System plugin Editor button plugin

Want to show some text only to registered users?
Or hide some content in December?
Want to display a message for mobile users?
Or hide an image every Monday?
Want to have a piece of text only visible for people from Europe?

You can do that and a whole lot more with Conditional Content!

With Conditional Content you can restrict or grant access to parts of the content (text, images...) based on a wide selection of conditions (device, user groups, date ranges, languages, menu items and more).

Creating conditions is a easy as placing {show} or {hide} around your desired content.

For example, to show a piece of text only to guests (not logged in visitors), you can do this:

{show access="Guest"}You are not logged in yet!{/show}

Or you can hide a promo graphic on weekends:

{hide days="6,7"}<img src="/images/week-special.jpg">{/hide}

For a complete overview of all the features offered by Conditional Content, head over to the full Documentation.