Skip to content
New issue

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

【システム】サブサイトを利用している際に送信メールのレイアウトファイルでサブフォルダを省略できない #1062

Open
tnagatomi opened this issue Apr 29, 2019 · 0 comments
Labels
Adjusting 調整中 Review レビュー要 Ver4 バージョン4

Comments

@tnagatomi
Copy link
Contributor

(このIssueはRedmineのチケットから移行されています)

作成者: 江頭 竜二
作成日: 2017/04/28 20:12

調査したところ、同じテーマを利用する場合、サブサイト毎にテンプレートを変更できるようにする為に、以下のようなパスになる仕様となっている。

/app/theme/theme-name/Emails/text/subsite-name/mail_default.php

テーマを分けた場合、subsite-name を省略したいが、省略できない。
通常のエレメントを利用する場合は省略できる仕様となっているが、Emailのテンプレートの場合は省略できない仕様となっている。

具体的には、View->subDir に subsite-name を指定した場合、subsite-name を省略できるが、CakeEmail を利用する場合、View->subDirを指定できず、「subsite-name/mail_default」として、テンプレートを指定している。
CakeEmail で、View->subDirを指定する場合は、CakePHPのコアにハックを入れる必要があり、一旦、保留とする。

@ryuring ryuring added the Review レビュー要 label May 16, 2019
@ryuring ryuring changed the title サブサイトを利用している際に送信メールのレイアウトファイルでサブフォルダを省略できない 【システム】サブサイトを利用している際に送信メールのレイアウトファイルでサブフォルダを省略できない May 5, 2020
@kaburk kaburk added the Adjusting 調整中 label Aug 11, 2021
@ryuring ryuring added the Ver4 バージョン4 label Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Adjusting 調整中 Review レビュー要 Ver4 バージョン4
Projects
None yet
Development

No branches or pull requests

3 participants