XF 2.2 Nav Link Search quesiton

ed762

Member
I am working on creating a link to pull out posts with set prefix ID

{{ link('search/search', null, { 't': 'post', 'c[prefixes][0]': 2, 'c[users]': $xf.visitor.username, 'o': 'relevance' }) }}

The output:
?c[prefixes][0]=2&c[users]=USER&o=relevance
instead of:
t=post&c[prefixes][0]=2&c[users]=USER&o=relevance

The "t=post" part is not coming up. Any tips as to what it is going wrong?
 
You can't for example do a global search for all threads with a specific prefix, or poll, without a keyword.

This will work for example: {{ link('search/search') }}?keywords=test&;search_type=post&;c[prefixes][1]=49&;order=relevance .
Whereas this won't: {{ link('search/search') }}?search_type=post&;c[prefixes][1]=49&;order=relevance .

 
Back
Top Bottom