Skip to content

Is there a JCB way to set the values in the filter dropdown in the admin list view? I'd like to for batch editing. #693

Answered by Llewellynvdm
Obscerno asked this question in Q&A
Discussion options

You must be logged in to vote

You are right, that the filter list is build from the data in the table, and therefore if a value is not there, it will not show as an option (we don't look at the field options at all). There is a way to add your own filters, but they will not show in the batch options at this point.

Your batch options are currently build with filters in the interpretation class with the following method:

/**
 * build batch loading helper scripts
 *
 * @param   string  $nameSingleCode  The single view name
 * @param   string  $nameListCode    The list view name
 *
 * @return  string The php to place in view.html.php
 *
 */
public function setBatchDisplayHelper(&$nameSingleCode, &$nameListCode)
{
	// star…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Obscerno
Comment options

@Llewellynvdm
Comment options

Answer selected by Obscerno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants