Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
typo3.org
typo3.org
Commits
0874d3bc
Commit
0874d3bc
authored
Feb 15, 2021
by
Thomas Löffler
Browse files
Use badges for numbers in facets
parent
76ec6bb6
Pipeline
#10339
passed with stages
in 2 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extensions/t3org_layout/Resources/Private/Partials/Solr/Facets/Tabs.html
View file @
0874d3bc
...
...
@@ -6,7 +6,7 @@
<f:for
each=
"{facet.options}"
as=
"option"
iteration=
"iteration"
>
<li
class=
"nav-item"
>
<a
class=
"facet solr-ajaxified nav-link{f:if(condition:option.selected,then: ' active')}"
href=
"{s:uri.facet.setFacetItem(facet: facet, facetItem: option)}"
>
{option.label}
<span>
(
{option.documentCount}
)
</span>
<span
class=
"badge badge-dark"
>
{option.documentCount}
</span>
</a>
</li>
</f:for>
...
...
extensions/t3org_layout/Resources/Private/Templates/Solr/Search/Results.html
View file @
0874d3bc
...
...
@@ -62,7 +62,7 @@
<li
class=
"nav-item"
>
<a
href=
"{s:uri.facet.removeAllFacets()}"
class=
"nav-link{f:if(condition:'{facetUsed}', else:' active')}"
"
>
All
<span>
(
{allResultCountWithoutFacets}
)
</span>
<span
class=
"badge badge-dark"
>
{allResultCountWithoutFacets}
</span>
</a>
</li>
<f:if
condition=
"{resultSet.hasSearched}"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment