Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
elggフレームワークでowner_blockページ要素を拡張する方法を知りたいです。使用するモジュールによって表示が異なります。違いは、メニュー項目名が異なるだけでなく、はるかに大きくなります。プラグインビューディレクトリにpage_elementsフォルダーを作成しましたが、すべてのモジュールのすべてのページでowner_blockが変更されました。たとえば、検索モジュールでのみ表示し、ダッシュボードでは表示しないようにします。
手伝ってくれませんか?
if 条件を使用できます
お気に入り
if(get_context() == 'search') { // then show the updates }else{ // just blank }
ありがとう..