[4.0.0-beta.1] Replacements for 'cp.entries.edit.details' hook and draftEditor.on('createProvisionalDraft') js event
@mattstein がすでに取り組んでいます。
2022年3月11日 から。
評価
この issue はまだ評価されていません。
説明
Description
Not really a bug, but maybe some missing info in the upgrade guides.
Upgrading plugins/modules went very smoothly so far, just one thing i couldn't figure out in entries edit pages:
In 3.7, we are adding custom buttons to the end of the sidebar via the now removed hook cp.entries.edit.details.

Could only find the Element::EVENT_DEFINE_SIDEBAR_HTML event, which places the added html somewhere in the middle of the sidebar. Is there a possibility/event to add the html to the very end of the sidebar?
The compare button is hidden by default in 'Current' entries, and gets enabled when a provisional draft is created:
window.draftEditor.on('createProvisionalDraft', function() {
newDraftId = window.draftEditor.settings.draftId
...
$('#draft-new').css('display', '')
});
This obviously does not work anymore, is there another js event we could hook into that gets fired when a provisional draft is created and contains the new draftId?
(If not, this is a FR :-)
Additional info
- Craft version: 4.0.x-dev
- PHP version: 8.0.15
- Database driver & version:
- Plugins & versions: none
- 主要言語
- JavaScript
- スター
- 43
- フォーク
- 160
- 平均マージ
- 3時間 57分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
craftcms/docs のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
Broken Link対応中かも @PerceiveWorld が 141 日前に担当しました。 オープンBroken Link
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
-
Broken LinkオープンBroken Link
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
似ている issue
-
factory-active factory-automatic task-bug-reproduction-success task-identify-harness-labels-done task-identify-issue-type-done
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
good first issue needs-triage priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
melodic-software/claude-code-plugins#6982 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
chore v2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
modelcontextprotocol/servers#5115 ·
メンテナーはふだん 1 日以内に返信
-
beginner bug good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
philaconvalley/website#168 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信