Skip to content

Commit

Permalink
Add video content for profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdegutt committed Nov 13, 2024
1 parent f8cf0fa commit 0deb3c6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/resources/site/parts/person/person.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var thymeleaf = require('/lib/thymeleaf')
var contentLib = require('/lib/xp/content')
var contentPrep = require('/lib/labs/content-prep.js')

exports.get = function(req) {
exports.get = function (req) {
var content = portal.getContent()

var model = {}
Expand All @@ -13,14 +13,14 @@ exports.get = function(req) {
start: 0,
count: 20,
query: query,
contentTypes: [app.name + ':article'],
contentTypes: [app.name + ':article', app.name + ':video'],
sort: 'createdTime DESC',
filters: {
hasValue: {
field: 'data.authors',
values: [content._id]
}
}
values: [content._id],
},
},
})

model.articles = contentPrep.prepareArticleList(result, 'block(4,3)')
Expand All @@ -35,6 +35,6 @@ exports.get = function(req) {
var body = thymeleaf.render(view, model)
return {
body: body,
contentType: 'text/html'
contentType: 'text/html',
}
}

0 comments on commit 0deb3c6

Please # to comment.