Because contextual filter argument is a text field with a limited value of 128 as maxlength so one can pass max 3-4 fields as arguments. So changing field to textarea is working good and can pass any number of arguments.

Comments

sumitmadan created an issue. See original summary.

sumitmadan’s picture

Status: Active » Needs review
StatusFileSize
new821 bytes
vyasamit2007’s picture

Status: Needs review » Reviewed & tested by the community

Works as expected. I'll leave it to module maintainer if it fits in the context of the module.

jibran’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/src/Plugin/views/field/View.php
@@ -190,7 +190,7 @@ class View extends FieldPluginBase {
-        '#type' => 'textfield',
+        '#type' => 'textarea',

This means we have to remove the extra white spaces in submit. I'd rather increase the character limit.

sumitmadan’s picture

Hi @jibran,

there can be N number of argument. How we will handle that case then?

jibran’s picture

Assigned: Unassigned » damiankloip

@damianklip what do you think?

reszli’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new666 bytes

here's a patch to increase the maxlength of the textfield - worked for me

joel_osc’s picture

I like the patch in #7... works great, thx!

ConradFlashback’s picture

Please commit this.

vladimiraus’s picture

Assigned: damiankloip » Unassigned
Status: Reviewed & tested by the community » Fixed

Thank you for your contributions.
Merged. 🍻

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • vladimiraus committed 7ff7abdf on 8.x-1.x
    fix: #2802161 Make contextual filter argument field as textarea
    
    By:...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.