Re: ファイルマネージャーでアップロードした画像をcssの背景画像でも使用する方法について
2015年5月21日 at 10:22
CSSの読み込み方法で $this->getStyleSheet() を使うとパスが変換されますので、$this->getThemePath(); を使えば変換が行なわれません。
http://concrete5-japan.org/help/5-6/design/theme-design-basic-seminar/
Your post has been saved and will be published after approval by the forum moderator.
itazu
Re: ファイルマネージャーでアップロードした画像をcssの背景画像でも使用する方法について
ご教授、ありがとうございます。
$this->getThemePath();を使って下記のコードを変更する事で、ファイルマネージャーでアップロードした画像を背景画像でも使用できました。
【変更前】
$this -> addHeaderItem('<link rel="stylesheet" media="screen" type="text/css" href="' . $this -> getStyleSheet('typography.css') . '" />');
【変更後】
$this -> addHeaderItem('<link rel="stylesheet" media="screen" type="text/css" href="' . $this -> getThemePath() . '/typography.css' . '" />');