Re: headerで各ページのh1背景を指定
- Nori > headerで各ページのh1背景を指定 @ 2018/8/23 15:23
- » tommy6073 > Re: headerで各ページのh1背景を指定 @ 2018/8/24 12:23
- Nori > Re: headerで各ページのh1背景を指定 @ 2018/8/31 18:58
tommy6073 > Re: headerで各ページのh1背景を指定 @ 2018/8/24 12:23 |
---|
こんにちは、tommy6073です。
引用: 考えとしては、"h1-bgimg-(ページ名).png"みたいなクラスが自動作成されれば、 そのようなクラスの作成ですが、BcBaser->getContentsName()で実現できるのではないでしょうか。 関数リファレンス/BcBaser getContentsName - baserCMS公式ガイド $this->BcBaser->getContentsName(true)のように呼び出すことで、そのコンテンツの一意となる文字列を取得できます。 こちらを app/webroot/theme/omotenashi/Elements/header.php で呼び出してページごとにクラスを設定できるかと思います。 |