LoginSignup
3
5

More than 5 years have passed since last update.

concrete5.7 テーマのサムネイル情報が表示されるようにする

Last updated at Posted at 2016-02-05

はじめに

前回の記事で、テーマを作成しましたが、テーマファイルを作成するだけでは、管理画面のサムネイルに何も表示されません。

01.jpeg

これに、画像、名前、説明を設定したいと思います。

サムネイル画像を表示させる

サムネイルにしたい画像を、360x270 の PNG 形式でテンプレートを保存した場所、/application/themes/tm1/ に 'thumbnail.png' というファイル名で保存します。

thumbnail.png
フリー写真素材ぱくたそ

名前と説明を表示させる

description.txt のファイルに1行目に名前、2行目に説明を書いて保存します。

/application/themes/tm1/description.txt
TestTheme1
テストのテーマです。

管理画面にサムネイルが表示されました。

02.png

さいごに

前回の記事と合わせて、/application/themes/tm1/ の中には、

/application/themes/tm1/
default.php
description.txt
thumbnail.png

の3ファイルができました。

3
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
5