Feature proposal #5450
closedImplement IF substitution for location
Description
Implement a new IF substitution for location so content can show/hide based off being in frontend or backend. Example as follows.
[cb:if location="frontend"]DISPLAY IN FRONTEND ONLY[/cb:if]
[cb:if location="backend"]DISPLAY IN BACKEND ONLY[/cb:if]
It could also strictly follow Client ID as follows.
[cb:if clientid="0"]DISPLAY IN FRONTEND ONLY[/cb:if]
[cb:if clientid="1"]DISPLAY IN BACKEND ONLY[/cb:if]
Updated by krileon over 9 years ago
- Tracker changed from Bug to Feature proposal
Updated by krileon over 9 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Implement in #945. The following usages implemented.
[cb:if client_id="0"]FRONTEND[/cb:if]
[cb:if client_id="1"]BACKEND[/cb:if]
[cb:if lang_name="English"]ENGLISH[/cb:if]
[cb:if lang_tag="en-GB"]ENGLISH[/cb:if]
Updated by krileon over 9 years ago
Modified to:
[cb:if application_context="frontend"]FRONTEND[/cb:if]
[cb:if application_context="administrator"]BACKEND[/cb:if]
[cb:if language_code="en"]ENGLISH[/cb:if]
[cb:if language_tag="en-GB"]ENGLISH[/cb:if]