これをアセットに入れても
ページロードでコンソールに
app.js
ReferenceError: ConcreteEvent is not defined
のエラーが出て
で同じく、ConcreteAlert is not definedになります。
Adminグループなら問題ないんですが、ブラザズするだけのユーザーの場合ログインしててもダメなようです。
セオリーとしては、通常のjQueryのダイアログを使うべきでしょうか?
ConcreteAlertは、編集権限を持たないユーザーでは使えない
2020年9月16日 at 14:39
このページに書いているダイアログなどを表示する
http://documentation.concrete5.org/tutorials/how-to-create-alert-notifications-and-modals
concrete/js/build/core/app/alert.js
内の
ConcreteAlertですが
編集権限を持たないユーザーだと、ConcreteAlert not foundになります。
これは、仕様でしょうか?
その場合フロントエンドで使う代替の方法などあるのでしょうか?
タグ:
Your post has been saved and will be published after approval by the forum moderator.
takuro hishikawa
Re: ConcreteAlertは、編集権限を持たないユーザーでは使えない
$this->requireAsset('javascript', 'core/app');
$this->requireAsset('css', 'core/app');
書かないといけないはずです