mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
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:
parent
57afb2de2b
commit
61612ba8fd
2 changed files with 4 additions and 4 deletions
|
@ -8,7 +8,7 @@ module.exports = [
|
||||||
type: 'posts',
|
type: 'posts',
|
||||||
modelOptions: {
|
modelOptions: {
|
||||||
modelName: 'Post',
|
modelName: 'Post',
|
||||||
filter: 'visibility:public+status:published+page:false',
|
filter: 'visibility:public+status:published+type:post',
|
||||||
exclude: [
|
exclude: [
|
||||||
'title',
|
'title',
|
||||||
'mobiledoc',
|
'mobiledoc',
|
||||||
|
@ -73,7 +73,7 @@ module.exports = [
|
||||||
'primary_tag',
|
'primary_tag',
|
||||||
'primary_author'
|
'primary_author'
|
||||||
],
|
],
|
||||||
filter: 'visibility:public+status:published+page:true'
|
filter: 'visibility:public+status:published+type:page'
|
||||||
},
|
},
|
||||||
events: {
|
events: {
|
||||||
add: 'page.published',
|
add: 'page.published',
|
||||||
|
|
|
@ -8,7 +8,7 @@ module.exports = [
|
||||||
type: 'posts',
|
type: 'posts',
|
||||||
modelOptions: {
|
modelOptions: {
|
||||||
modelName: 'Post',
|
modelName: 'Post',
|
||||||
filter: 'visibility:public+status:published+page:false',
|
filter: 'visibility:public+status:published+type:post',
|
||||||
exclude: [
|
exclude: [
|
||||||
'title',
|
'title',
|
||||||
'mobiledoc',
|
'mobiledoc',
|
||||||
|
@ -79,7 +79,7 @@ module.exports = [
|
||||||
'primary_tag',
|
'primary_tag',
|
||||||
'primary_author'
|
'primary_author'
|
||||||
],
|
],
|
||||||
filter: 'visibility:public+status:published+page:true'
|
filter: 'visibility:public+status:published+type:page'
|
||||||
},
|
},
|
||||||
events: {
|
events: {
|
||||||
add: 'page.published',
|
add: 'page.published',
|
||||||
|
|
Loading…
Add table
Reference in a new issue