Skip to content

Commit

Permalink
fix(pat relateditems): Make templates customizeable again via pattern…
Browse files Browse the repository at this point in the history
…options
  • Loading branch information
petschki committed Jul 15, 2022
1 parent 3fda447 commit 984a9a6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pat/relateditems/relateditems.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ export default Base.extend({
var template;
if (self.options[tpl + "TemplateSelector"]) {
template = $(self.options[tpl + "TemplateSelector"]).html();
if (!template) {
}
if (!template) {
if(self.options[tpl + "Template"]) {
template = self.options[tpl + "Template"];
} else {
template = self[tpl + "Template"];
}
} else {
template = self[tpl + "Template"];
}
// let's give all the options possible to the template generation
var options = $.extend(true, {}, self.options, item, {
Expand Down

0 comments on commit 984a9a6

Please sign in to comment.