Feature proposal #5529
closedImplement IF substitution based off the view
Description
Implement a substitution IF usage that's based off the current view. This means a description of a field for example could be conditioned to only show on registration or a userlist, etc..
https://www.joomlapolis.com/forum/153-professional-member-support/231284-list-management-tooltips
Updated by beat about 9 years ago
Great idea, although I would already plan for unlimited views (user defined ones as well, like e.g. different registration forms).
Another idea could be a possibility for an IF substitution based on Joomla menu (itemid) ?
That way the same page, accessed from different menus (protected by Joomla ACL) could give different informations.
Updated by beat about 9 years ago
- Target version changed from CB 2.0.12 to CB 2.0.13
Updated by krileon almost 9 years ago
We could just implemented support for conditioning _REQUEST values like CB Auto Actions allows. Example of how that may work as follows.
[cb:if view="userlist"]Userlist[/cb:if]
Basically add the Input array to the extras substitution array and it should automatically work. This handles itemid conditioning, view conditioning, or even views that condition based off a specific value in the url, etc..
Additionally we should look into ELSE and ELSEIF support. Example as follows.
[cb:if view="userlist"]Userlist[cb:else]ALL OTHER VIEWS[/cb:else][/cb:if]
Updated by beat almost 9 years ago
- Target version changed from CB 2.0.13 to CB 2.0.14
Updated by beat over 8 years ago
- Target version changed from CB 2.0.14 to CB 2.0.15
Updated by beat about 8 years ago
- Target version changed from CB 2.0.15 to CB 2.1
Updated by krileon almost 8 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Implemented in MR !1165
This is really only needed for Fields usages.