Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'djay/5.0.x_integration' of github.com:collective/collec…
…tive.collectionfilter into djay/5.0.x_integration
- Loading branch information
Showing
11 changed files
with
392 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/collective/collectionfilter/portlets/locationfilter.pt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<aside class="portlet portletNavigationTree ${view/filterClassName} locationFilter ${view/settings/patCollectionFilter}" | ||
data-pat-collectionfilter='{ | ||
"collectionUUID": "${view/settings/target_collection}", | ||
"reloadURL": "${view/reload_url}", | ||
"contentSelector": "${view/settings/content_selector}" | ||
}' | ||
tal:condition="view/available" | ||
i18n:domain="plone"> | ||
|
||
<tal:if condition="view/settings/target_collection"> | ||
<nav class="portletContent" tal:define="results view/results"> | ||
|
||
<header class="portletHeader" tal:condition="view/title" tal:content="view/title">Title</header> | ||
<ul class="navTree navTreeLevel0"> | ||
<tal:items repeat="item results"> | ||
<li class="navTreeItem"> | ||
<ul class="navTree navTreeLevel${item/level}"> | ||
<li class="${item/css_class}"> | ||
<a | ||
rel="nofollow" | ||
href="${item/url}" | ||
title="Count: ${item/count}" | ||
class="contenttype-${item/contenttype}"> | ||
<span tal:content="item/title">Item</span> | ||
<tal:show_count condition="view/settings/show_count">(<span tal:replace="item/count" />)</tal:show_count> | ||
</a> | ||
</li> | ||
</ul> | ||
</li> | ||
</tal:items> | ||
</ul> | ||
</nav> | ||
</tal:if> | ||
</aside> |
Oops, something went wrong.