• Applicable Software: MokonyxEditor
  • Min Version Number: 01.22.00
  • Max Version Number: Not Applicable

Where to find it

Conditions installs its own top-level admin menu. Open Components → Conditions, which has two screens:

  • Conditions - create and edit condition sets (the rules).
  • Module Manager - bulk-assign modules to a condition.

What a condition is

A condition is a saved, reusable set of rules. Each rule tests one thing about the current page or visitor. You combine rules into groups (rule-sets), and the condition decides whether to show the content based on whether those groups pass.

The rules you can use

Rules are grouped by what they test:

  • Page & menu - Menu Item (with an optional include child menu items toggle), Home Page, Page Type (home / article / category / featured / archive / any component page), Component, Template, URL (regex).
  • Content - Article, Content Category (with an include child categories toggle), Content Tag.
  • Visitor - User Group, Access Level, Language, Device (desktop / tablet / mobile), Operating System, Browser, IP Address (single, CIDR, or range).
  • Date & time - Date (before / after / between), Time, Day of Week, Month, Season.
  • Nesting - Condition Set, which reuses another saved condition as a single rule.

Every rule has a NOT / exclude switch, so any test can be inverted (for example, "not on the home page").

How matching works

  • Each group has its own match mode - Match ALL (every rule must pass) or Match ANY (at least one must pass) - and can itself be negated.
  • Groups can nest, so you can express logic like A AND (B OR C).
  • The content shows when any top-level group passes - each group is an independent "or this situation" case.
  • When more than one condition is attached to the same module, the module shows if any of them matches.

Creating a condition

  1. Open Components → Conditions → Conditions and create a new one.
  2. Give it a Name (an alias is generated), and optionally a description, grouping category, and colour.
  3. Add a group, choose Match ALL or Match ANY, and add rules.
  4. Add more groups for additional "or this situation" cases; nest groups where you need mixed AND/OR logic.
  5. Save.

Assigning a condition to modules

Open the Module Manager screen, select one or more modules, choose a condition, and assign it - you can also mirror or copy assignments across modules. You can also assign a condition from a module's own Conditions tab in the module editor. When a condition governs a module, its core page assignment is set to "All pages" so the condition controls visibility instead. From the Conditions list you can multi-select delete and batch-edit; clicking a row opens a read-only view of its groups.

Automate with the REST API

Conditions can be managed over Joomla Web Services under /api/index.php/v1/mokonyxeditor/conditions:

  • GET conditions and GET conditions/:id - list, or read one with its full nested rule tree and assignments.
  • POST conditions and PUT/PATCH conditions/:id - create and update.
  • POST conditions/:id/assign and DELETE conditions/:id/assign - assign or unassign modules.
  • DELETE conditions/:id - delete a whole condition, its rules, and its assignments.

All routes are token-authenticated and permission-gated (Super Users always allowed), so automation runs under the same access rules as the admin UI.

Related

For audience gating inside article content rather than whole modules, use the Members Only, Guests Only, and Social Locker content widgets.