■ユーザーズフォーラム リニューアルのお知らせ
新規投稿は新ユーザーズフォーラムにお願いします。

Re: nada_icons トップページスライダー下にブログ記事を表示させたい

akillerbee > Re: nada_icons トップページスライダー下にブログ記事を表示させたい @ 2017/2/8 11:55
こんにちはakillerbeeです。


手順を記載しておりますのでご参考まで。

下記ファイルをコピーして
lib/Baser/Plugin/Blog/View/Blog/default/posts.php


下記のようにリネームして設置します
app/webroot/theme/nada-icons/Blog/default/top_posts.php


管理画面の「固定ページ情報編集:Index」で下記のように変更
<?php $this->BcBaser->blogPosts('news', 5) ?>
↓
<?php $this->BcBaser->blogPosts('news', 5, ['template' => 'top_posts']) ?>


下記のようにコピーしてきたファイルを変更
app/webroot/theme/nada-icons/Blog/default/top_posts.php
<li class="<?php echo implode(' ', $class) ?>">
  <span class="date"><?php $this->Blog->postDate($post, 'Y.m.d') ?></span><br />
  <span class="title"><?php $this->Blog->postTitle($post) ?></span>
  <span class="title"><?php $this->Blog->postContent($post) ?></span>	← 追加
</li>


※「$this->Blog->postContent($post)」詳細
http://basercms.net/reference/archives/31

以上
ログイン
ユーザー名:
パスワード:


  新規登録 / パスワード紛失

検索

facebook
フォーラムで悩みが解決した場合など、よかったら「いいね!」をポチっとクリックしてください!質問の回答者や開発者の励みになります

フォーラムガイド


関連リンク

オンライン状況
17 人のユーザが現在オンラインです。 (16 人のユーザが フォーラム を参照しています。)

登録ユーザ: 0
ゲスト: 17