Project

General

Profile

Actions

Feature proposal #5529

closed

Implement IF substitution based off the view

Feature proposal #5529: Implement IF substitution based off the view

Added by krileon about 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
28 September 2015
Due date:
% Done:

100%

Estimated time:

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 10 years ago Actions #1

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 10 years ago Actions #2

  • Target version changed from CB 2.0.12 to CB 2.0.13

Updated by krileon almost 10 years ago Actions #3

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 10 years ago Actions #4

  • Target version changed from CB 2.0.13 to CB 2.0.14

Updated by beat over 9 years ago Actions #5

  • Target version changed from CB 2.0.14 to CB 2.0.15

Updated by beat over 9 years ago Actions #6

  • Target version changed from CB 2.0.15 to CB 2.1

Updated by krileon about 9 years ago Actions #7

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

Implemented in MR !1165

This is really only needed for Fields usages.

Updated by krileon almost 9 years ago Actions #8

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom