Skip to content

Commit

Permalink
Merge pull request ezsystems#42 from kamilmusial/master
Browse files Browse the repository at this point in the history
EZEE-1382 Add custom filters to a request to eZ Recommendation
  • Loading branch information
kamilmusial committed Jul 12, 2017
2 parents ef5ae38 + 35a800e commit 456c516
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -24,7 +24,7 @@
{% verbatim %}' this}}
{{#each this}}
<a href="{{attr.url}}"{{#unless attr.isRandom}} onclick="return eZ.RecommendationRestClient.ping('{{clickRecommended}}')"{{/unless}}>
<a href="{{attr.uri}}"{{#unless attr.isRandom}} onclick="return eZ.RecommendationRestClient.ping('{{clickRecommended}}')"{{/unless}}>
<article class="class-article col-sm-4">
<div class="recommendations-article">
<div class="col-sm-4 recommendations-thumbnail" style="background-image: url('{{attr.image}}');">
Expand Down
Expand Up @@ -27,6 +27,7 @@
outputTypeId: '{{ outputTypeId }}',
contextItems: '{{ contentId }}',
categoryPath: '{{ categoryPath }}',
filters: '{{ filters is defined ? filters: '' }}',
fields: [{% for entry in fields %}'{{ entry }}', {% endfor %}],
errorMessage: defaultArticlesListContent,
notSupportedMessage: '{{ 'Cannot display recommendations, your browser is not supported'|trans }}',
Expand All @@ -52,7 +53,7 @@
if (!context[idx].attr.title) {
context[idx].attr.title = mockups.data[idx].name;
context[idx].attr.image = mockups.data[idx].image;
context[idx].attr.url = mockups.data[idx].url;
context[idx].attr.uri = mockups.data[idx].uri;
context[idx].attr.isRandom = true;
}
}
Expand Down

0 comments on commit 456c516

Please sign in to comment.