Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse {exp:search:total_results} as any other template tag #1193

Closed
1 task done
robsonsobral opened this issue Jul 7, 2021 · 2 comments · Fixed by #2066
Closed
1 task done

Parse {exp:search:total_results} as any other template tag #1193

robsonsobral opened this issue Jul 7, 2021 · 2 comments · Fixed by #2066
Labels
community feature Someone from the community is willing to work on this

Comments

@robsonsobral
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently. despite {exp:search:total_results} can be used as a variable pair, it has no difference from a single variable

Describe the solution you'd like

I would like to be able to code something like:

{exp:search:total_results}
    <p>
        {total_results} found.
    </p>
    {if no_results}
        <p>No results found.</p>
    {/if}
{/exp:search:total_results}
  • I am capable and would like to work on implementation of this feature if it is considered.
@intoeetive intoeetive added the community feature Someone from the community is willing to work on this label Jul 7, 2021
@intoeetive
Copy link
Contributor

Making this available as tag pair would be nice little addition!

@robsonsobral if you feel good about it, please go ahead and implement. Thank you!

intoeetive added a commit that referenced this issue Aug 16, 2022
…re-search-total-results-cannot-have-conditionals-or-no-results

Enable `exp:search:total_results` to be parsed as tag pair, #1193
intoeetive added a commit that referenced this issue Aug 17, 2022
…re-search-total-results-cannot-have-conditionals-or-no-results

Enable exp:search:total_results to be parsed as tag pair, #1193
@intoeetive
Copy link
Contributor

@robsonsobral thanks for implementing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community feature Someone from the community is willing to work on this
Projects
None yet
2 participants