Add more item states to facets menu
This commit is contained in:
parent
d222dd6040
commit
edfbe87a51
|
@ -426,8 +426,6 @@ class tx_dlf_search extends tx_dlf_plugin {
|
|||
// Process results.
|
||||
foreach ($results->facet_counts->facet_fields as $field => $values) {
|
||||
|
||||
$hasValue = FALSE;
|
||||
|
||||
$entryArray = array ();
|
||||
|
||||
$entryArray['title'] = $this->conf['facets'][$field];
|
||||
|
@ -456,18 +454,6 @@ class tx_dlf_search extends tx_dlf_plugin {
|
|||
|
||||
}
|
||||
|
||||
if (!$hasValue) {
|
||||
|
||||
$entryArray['_SUB_MENU'][] = array (
|
||||
'title' => $this->pi_getLL('noFacets', ''),
|
||||
'count' => 0,
|
||||
'_OVERRIDE_HREF' => '',
|
||||
'doNotLinkIt' => 1,
|
||||
'ITEM_STATE' => 'NO'
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
$menuArray[] = $entryArray;
|
||||
|
||||
}
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
<label index="label.submit">Search</label>
|
||||
<label index="searchfor">Search for: "%s"</label>
|
||||
<label index="hits">%d hits found in %d documents.</label>
|
||||
<label index="noFacets">no facets</label>
|
||||
</languageKey>
|
||||
<languageKey index="de" type="array">
|
||||
<label index="tt_content.pi_flexform.sheet_general">Einstellungen</label>
|
||||
|
@ -31,7 +30,6 @@
|
|||
<label index="label.submit">Suchen</label>
|
||||
<label index="searchfor">Suche nach: "%s"</label>
|
||||
<label index="hits">Die Suche ergab %d Treffer in %d Dokumenten.</label>
|
||||
<label index="noFacets">keine Einträge</label>
|
||||
</languageKey>
|
||||
</data>
|
||||
</T3locallang>
|
|
@ -7,7 +7,6 @@ plugin.tx_dlf_search.facetsConf {
|
|||
NO = 1
|
||||
NO {
|
||||
stdWrap {
|
||||
wrap = <h2>|</h2>
|
||||
crop = 55 | ... | 1
|
||||
append.fieldRequired = count
|
||||
append = TEXT
|
||||
|
@ -15,14 +14,21 @@ plugin.tx_dlf_search.facetsConf {
|
|||
append.wrap = (|)
|
||||
}
|
||||
doNotLinkIt.field = doNotLinkIt
|
||||
wrapItemAndSub = <li>|</li>
|
||||
wrapItemAndSub = <li class="tx-dlf-search-no">|</li>
|
||||
}
|
||||
IFSUB < .NO
|
||||
IFSUB.wrapItemAndSub = <li class="tx-dlf-search-no tx-dlf-search-ifsub">|</li>
|
||||
ACT < .NO
|
||||
ACT.wrapItemAndSub = <li class="tx-dlf-search-act">|</li>
|
||||
ACTIFSUB < .NO
|
||||
ACTIFSUB.wrapItemAndSub = <li class="tx-dlf-search-act" tx-dlf-search-ifsub>|</li>
|
||||
}
|
||||
2 < .1
|
||||
2 {
|
||||
NO.stdWrap.wrap >
|
||||
ACT.stdWrap.wrap >
|
||||
IFSUB >
|
||||
ACT >
|
||||
ACTIFSUB >
|
||||
CUR < .NO
|
||||
CUR.wrapItemAndSub = <li class="tx-dlf-search-cur">|</li>
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue