Skip to content

カスタムコンテンツ草稿プレビュー機能実装#4191

Merged
ryuring merged 63 commits into
baserproject:5.1.xfrom
kawaseryoma:DZERO_THEMA-2
May 14, 2025
Merged

カスタムコンテンツ草稿プレビュー機能実装#4191
ryuring merged 63 commits into
baserproject:5.1.xfrom
kawaseryoma:DZERO_THEMA-2

Conversation

@kawaseryoma

Copy link
Copy Markdown
Contributor

@ryuring
草稿プレビュー機能を実装しました!
ご確認よろしくお願いします!

kawaseryoma and others added 30 commits January 20, 2025 11:26
kawaseryoma and others added 27 commits February 21, 2025 19:03
# Conflicts:
#	plugins/bc-custom-content/src/Controller/CustomContentController.php
#	plugins/bc-custom-content/src/Service/CustomEntriesService.php
const previewUrl = $.bcUtil.adminBaseUrl + 'baser-core/preview/view?url=' + customEntriesForm.fullUrl + '&preview=default';

var previewMode = '&preview=default';
if ($("#ContentPreviewMode").val() == 'draft') {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

== を === に変更お願いします

continue;
}
$name = $customField->name;
$entity->$name = $entity->detail_draft;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

detail_draft と名前が決め打ちになってしまっているのが気になります
草稿フィールドの取得メソッドをプラグイン側に作る方針を考えたいですね

@ryuring ryuring merged commit 9e63e41 into baserproject:5.1.x May 14, 2025
1 check passed
@momofff momofff added this to the 5.1.7 milestone May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants