forked from ezsystems/ezplatform-ee-demo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ezsystems#27 from damianz5/eztags
DEMO-91: Add TagBundle to eZ Studio Demo
- Loading branch information
Showing
5 changed files
with
50 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<div class="ng-tags-header"> | ||
</div> |
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,41 @@ | ||
{% extends "eZStudioDemoBundle::pagelayout.html.twig" %} | ||
|
||
{% set tag_keyword = netgen_tags_tag_keyword( tag ) %} | ||
|
||
{% block page_head %} | ||
{% set title = tag_keyword %} | ||
{{ parent() }} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<section class="tags-content content-view-full"> | ||
<div class="row"> | ||
<div class="col-md-8 col-md-offset-2 col-sm-12"> | ||
<div class="attribute-header"> | ||
<h1>{{ 'Tags'|trans }} / <a href="{{ app.request.requestUri }}">{{ tag_keyword }}</a></h1> | ||
</div> | ||
|
||
{% if related_content|length > 0 %} | ||
<section class="content-view-children search-result-item"> | ||
{% for related_content_item in related_content %} | ||
{{ render(controller( | ||
"ez_content:viewAction", { | ||
"contentId": related_content_item.id, | ||
"locationId": related_content_item.mainLocationId, | ||
"viewType": "search_result_item", | ||
"layout": false | ||
} | ||
)) }} | ||
{% endfor %} | ||
</section> | ||
|
||
{% if related_content.haveToPaginate() %} | ||
<div class="pagination-centered"> | ||
{{ pagerfanta( related_content, 'twitter_bootstrap3_translated' ) }} | ||
</div> | ||
{% endif %} | ||
{% endif %} | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} |
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