Updated url service to use type column

refs #10922

This updates the frontend url service to replace references to the
`page` column with the `type` column.
This commit is contained in:
Fabien O'Carroll 2019-07-23 15:31:07 +08:00
parent 57afb2de2b
commit 61612ba8fd
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ module.exports = [
type: 'posts',
modelOptions: {
modelName: 'Post',
filter: 'visibility:public+status:published+page:false',
filter: 'visibility:public+status:published+type:post',
exclude: [
'title',
'mobiledoc',
@ -73,7 +73,7 @@ module.exports = [
'primary_tag',
'primary_author'
],
filter: 'visibility:public+status:published+page:true'
filter: 'visibility:public+status:published+type:page'
},
events: {
add: 'page.published',

View File

@ -8,7 +8,7 @@ module.exports = [
type: 'posts',
modelOptions: {
modelName: 'Post',
filter: 'visibility:public+status:published+page:false',
filter: 'visibility:public+status:published+type:post',
exclude: [
'title',
'mobiledoc',
@ -79,7 +79,7 @@ module.exports = [
'primary_tag',
'primary_author'
],
filter: 'visibility:public+status:published+page:true'
filter: 'visibility:public+status:published+type:page'
},
events: {
add: 'page.published',