We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
テーマ(初期状態だと BcThemeSample )内 plugins/BcThemeSample/templates/plugin/BcBlog/Blog/default 内に ブログのテンプレート各種ファイルを設置しても $this->BcBaser->blogPosts で posts.phpが正しく読み込まれず、 bc-frontの posts.php が優先されて読み込まれてしまっているようです。
plugins/bc-front/templates/plugin/BcBlog/Blog/default/posts.php plugins/BcThemeSample/templates/plugin/BcBlog/Blog/default/posts.php
baserCMS version : 5.0.1
index.php、archives.php、single.php については テーマ内に設置したものが優先されるようです (正しい動作)
The text was updated successfully, but these errors were encountered:
ちょっと見てみますね @kaburk
Sorry, something went wrong.
@kaburk こちらの件、確認しました。 baserCMS4の時も同様の仕様だったのですが、element ディレクトリが必要となるようです。
element
このパスに配置する場合は
plugins/BcThemeSample/templates/plugin/BcBlog/Blog/default/posts.php
次の element ディレクトリが必要になります。
plugins/BcThemeSample/templates/plugin/BcBlog/element/
次のパスに配置する場合は
plugins/BcThemeSample/templates/Blog/default/posts.php
plugins/BcThemeSample/templates/element/
@kaburk 公式ガイドに記載しておきました。問題なければクローズお願いします。 https://baserproject.github.io/5/theme/customizing_template#postsphp-%E3%82%92%E8%A8%AD%E7%BD%AE%E3%81%97%E3%81%A6%E3%82%82%E5%8F%8D%E6%98%A0%E3%81%A7%E3%81%8D%E3%81%AA%E3%81%84%E5%A0%B4%E5%90%88
あと、BcThemeSampleには、element を配置しておきました。 25aaf70
No branches or pull requests
概要
テーマ(初期状態だと BcThemeSample )内 plugins/BcThemeSample/templates/plugin/BcBlog/Blog/default 内に
ブログのテンプレート各種ファイルを設置しても $this->BcBaser->blogPosts で posts.phpが正しく読み込まれず、
bc-frontの posts.php が優先されて読み込まれてしまっているようです。
plugins/bc-front/templates/plugin/BcBlog/Blog/default/posts.php
plugins/BcThemeSample/templates/plugin/BcBlog/Blog/default/posts.php
baserCMS version : 5.0.1
備考
index.php、archives.php、single.php については テーマ内に設置したものが優先されるようです
(正しい動作)
The text was updated successfully, but these errors were encountered: