Project

General

Profile

Actions

Feature proposal #9073

closed

Implement URL IF substitutions

Added by krileon 3 months ago. Updated 15 days ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
Start date:
15 November 2022
Due date:
% Done:

100%

Estimated time:

Description

Would be helpful to be able to condition against a URL or a URLs variables for conditioning content based off where it's rendered. At the very least based off Itemid for menu based conditional content.

Actions #1

Updated by krileon 3 months ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Implemented in MR !1833

The following will be available once merged.

New IF Operator:
contains = STRING contains STRING
!contains = STRING does not contain STRING

New IF Behavior:
[cb:if url contains "&listid=123"]The URL I am on has listid of 123 in it.[/cb:if]
[cb:if url !contains "&listid=123"]The URL I am on DOES NOT have listid of 123 in it.[/cb:if]
[cb:if menu_id="1"]The URL I am on contains an Itemid of 1[/cb:if]

New URL Location:
[cb:url location="current" /] = URL currently viewing

Actions #2

Updated by beat 15 days ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF