Project

General

Profile

Actions

Feature proposal #5529

closed

Implement IF substitution based off the view

Added by krileon about 9 years ago. Updated about 8 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

Actions #1

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.

Actions #2

Updated by beat about 9 years ago

  • Target version changed from CB 2.0.12 to CB 2.0.13
Actions #3

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]

Actions #4

Updated by beat almost 9 years ago

  • Target version changed from CB 2.0.13 to CB 2.0.14
Actions #5

Updated by beat almost 9 years ago

  • Target version changed from CB 2.0.14 to CB 2.0.15
Actions #6

Updated by beat over 8 years ago

  • Target version changed from CB 2.0.15 to CB 2.1
Actions #7

Updated by krileon about 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.

Actions #8

Updated by krileon about 8 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF