0
아포스트로피 블로그 모듈을 사용하여 개별 블로그 기사 페이지를 표시하는 데 문제가 있습니다. 나는 뭔가를 놓치고 있거나 뭔가를 잊어 버렸을 것입니다. 아포스트로피 블로그 모듈 : 개별 블로그 게시물 404
- 이 URL을 "테스트"와 샘플 기사 또는 블로그 게시물을 작성하고 제목 "테스트" : ( https://github.com/newdesignideas/sample-veebidisainer 다음의 repo에있는 코드) 문제를 복제 할 것을
Here's
내 app.js는 다음과 같습니다 :
var apos = require('apostrophe')({
shortName: 'veebidisainer',
title: 'veebidisainer',
// declaring the blog bundle
bundles: [ 'apostrophe-blog' ],
// These are the modules we want to bring into the project.
modules: {
// This configures the apostrophe-users module to add an admin-level
// group by default
'apostrophe-users': {
groups: [
{
title: 'guest',
permissions: [ ]
},
{
title: 'admin',
permissions: [ 'admin' ]
}
]
},
// This configures the apostrophe-assets module to push a 'site.less'
// stylesheet by default
'apostrophe-assets': {
stylesheets: [
{
name: 'site'
}
],
scripts: [
{
name: 'mo',
}
]
},
// Add your modules and their respective configuration here!
'apostrophe-blog': {
widget: true
},
'apostrophe-blog-pages': {},
'apostrophe-blog-widgets': {},
'apostrophe-pages': {
// We must list 'apostrophe-blog-pages'
types: [
{ name: 'apostrophe-blog-pages',
label: 'Blog'
},
{
name: 'default',
label: 'Default'
},
{
name: 'home',
label: 'Home'
}
]
},
'b2b-main-menu': {},
'b2b-main-menu-widgets': {
extend: 'apostrophe-pieces-widgets'
},
}
});
MongoDB 데이터베이스를 검사하여 샘플 테스트 기사가 올바르게 게시되었습니다. 아마도 뷰 파일이 누락 되었습니까? 문서가 거의 없기 때문에 적절한 위치에 뷰 파일을 만들려고했습니다. 자신의 블로그 페이지의 URL를 기준으로 블로그 게시물에 대한
Click here to view the sceenshot showing the lib/module file structure
그냥 머리가 위로 - ** "apostrophe-blog-widgets"** 대신 ** "apostrophe-blog-pages-widgets"**라는 모듈을 만들고 구성해야한다는 것을 발견했습니다. 그렇지 않으면 콘솔 경고가 표시되었습니다. –
감사합니다. 아포스트로피 샌드 박스 프로젝트를 복사하고 내 사이트를 기반으로 블로그를 만들었습니다. –