Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
01016b5
カスタムコンテンツアーカイブ機能実装
kawaseryoma Jan 20, 2025
270d55b
Revert "カスタムコンテンツアーカイブ機能実装"
kawaseryoma Jan 20, 2025
5e06d3a
カスタムコンテンツアーカイブ機能実装
kawaseryoma Jan 20, 2025
91df0f6
年別アーカイブ機能実装
kawaseryoma Jan 20, 2025
0098658
CustomContentHelperにgetFieldItemList()メソッド実装
kawaseryoma Jan 21, 2025
1800d36
getYearList()メソッド実装
kawaseryoma Jan 22, 2025
80dc63b
カスタムコンテンツアーカイブ機能、レビュー後調整
kawaseryoma Jan 24, 2025
bb3298e
オプション(onryOneOnTable)実装
kawaseryoma Feb 5, 2025
c600461
オプション(syowHeading)実装
kawaseryoma Feb 5, 2025
1a8231a
フィールドタイプBurgerEditorはプレビュー機能を使用しないよう調整
kawaseryoma Feb 5, 2025
b72cb6f
onlyOnOnTableのためにphpでhiddenを追加
kawaseryoma Feb 5, 2025
cd0838b
BurgerEditorを使用している場合エントリーが保存できないため調整(PHP側)
kawaseryoma Feb 5, 2025
43c69bb
CuCcBurgerEditorプラグイン実装
kawaseryoma Feb 5, 2025
14d53f6
BurgerEditor編集エリアが出ないので修正
kawaseryoma Feb 5, 2025
825b33f
CuCcBurgerEditorプラグインを削除
kawaseryoma Feb 5, 2025
d67b662
カスタムエントリーでWarningが発生していたため調整
ryuring Feb 5, 2025
1158b71
レビューによる調整
ryuring Feb 5, 2025
3667267
レビュー調整
ryuring Feb 5, 2025
49bfa9a
テーブルが保存できない問題を改善
ryuring Feb 5, 2025
ca5597d
onlyOneOnTable表示調整実装中
kawaseryoma Feb 12, 2025
6d0daca
onlyOneOnTableが動作するよう変更を一旦戻す
kawaseryoma Feb 12, 2025
4f5a0ca
OnlyOneOnTableの処理を追加
ryuring Feb 12, 2025
3318207
OnlyOneOnTabe属性のcss調整
kawaseryoma Feb 12, 2025
91c655b
マルチチェックボックスのアーカイブページを実装
kawaseryoma Feb 12, 2025
17a2bd1
アーカイブページ、年別アーカイブページのその他のフィールドによるフィルタリングを実装
kawaseryoma Feb 12, 2025
03ba255
getFieldItemList()調整、リストの取得方法を変更し、所属するエントリーが存在するもののみを対象とするよう調整
kawaseryoma Feb 12, 2025
aeb235a
ShowHeading設定値によるフロント表示調整
kawaseryoma Feb 12, 2025
db3c9d0
install.phpを調整
kawaseryoma Feb 12, 2025
bc41974
form.jsで付与したclassを外すための処理を追加
kawaseryoma Feb 13, 2025
2c7aa24
settimeoutでは動作が不安定なため、メソッドの呼び出し位置を調整して解消
kawaseryoma Feb 13, 2025
966f1ca
エントリーが見つからないときの処理を追加
kawaseryoma Feb 19, 2025
8173fcb
カスタムコンテンツのプレビューの不具合を解消
kawaseryoma Feb 19, 2025
7a2845f
エントリーが見つからない場合、controllerでnotFound()を返すよう調整
kawaseryoma Feb 19, 2025
237b823
カスタムコンテンツページネーション対応
kawaseryoma Feb 19, 2025
87c1bb9
フィールドタイプがチェックボックスのときの、フロント表示内容を調整
kawaseryoma Feb 20, 2025
516085b
install.php削除
kawaseryoma Feb 21, 2025
49d0dac
レビュー後修正
kawaseryoma Feb 21, 2025
d1daa19
findByName()でqueryが取得できないときにからの配列を返すよう調整
kawaseryoma Feb 27, 2025
d15607d
新規メソッドユニットテスト作成
kawaseryoma Feb 27, 2025
531bbc2
一時コミット
kawaseryoma Mar 5, 2025
ba65dfa
CustomContentHelper::getFieldItemList() が正常に取得できない問題を改善
ryuring Mar 5, 2025
5306770
getFieldItemList(), getYearList()仕様調整
kawaseryoma Mar 11, 2025
b3ab1d7
ユニットテストgetFieldItemList(), getYearList()実装
kawaseryoma Mar 11, 2025
1c8ad94
コーディング規約に則った修正、インデント修正、不要なnamespaceの削除
kawaseryoma Apr 10, 2025
217800c
Merge branch '5.1.x' into DZERO_THEMA-2
kawaseryoma Apr 11, 2025
0596965
ユニットテストの失敗を調整
ryuring Apr 14, 2025
d9b18f7
ユニットテストの失敗を調整
ryuring Apr 14, 2025
e95d5f5
ユニットテストのメソッド名を表示するように調整
ryuring Apr 14, 2025
80a0462
ヘッダ「X-Powered-By」の削除をユニットテスト実行時には実行しないように調整
ryuring Apr 14, 2025
662aca4
ユニットテストを調整
ryuring Apr 14, 2025
8740cd9
ユニットテストを調整
ryuring Apr 14, 2025
737fa80
ユニットテストを調整
ryuring Apr 15, 2025
b17a9b9
ユニットテストを調整
ryuring Apr 15, 2025
7846b3a
ユニットテストを調整
ryuring Apr 15, 2025
7b0d8cd
ユニットテストを調整
ryuring Apr 15, 2025
376a816
ユニットテストを調整
ryuring Apr 15, 2025
ae46063
ユニットテストを調整
ryuring Apr 15, 2025
123c6d1
ユニットテストを調整
ryuring Apr 15, 2025
3407c1a
ユニットテストを調整
ryuring Apr 15, 2025
15e7111
ユニットテストを調整
ryuring Apr 15, 2025
c25abd4
ユニットテストを調整
ryuring Apr 15, 2025
db0d822
下書きプレビュー機能を実装
kawaseryoma May 12, 2025
dc495e3
Merge branch '5.1.x' into DZERO_THEMA-2
kawaseryoma May 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ const customEntriesForm = {
window.open('', 'preview');
const form = $(this).parents('form');
const action = form.attr('action');
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.

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

previewMode = '&preview=draft';
}

const previewUrl = $.bcUtil.adminBaseUrl + 'baser-core/preview/view?url=' + customEntriesForm.fullUrl + previewMode;
const tokenUrl = $.bcUtil.baseUrl + '/baser-core/bc_form/get_token?requestview=false'
form.attr('target', 'preview').attr('action', previewUrl).submit();
form.attr('target', '_self').attr('action', action);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,18 @@ public function setupPreviewForView(Controller $controller): void
BcUtil::onEvent($customEntriesTable->getEventManager(), 'Model.beforeMarshal', $events);

$entity = $customEntriesTable->decodeRow($entity);

if ($request->getQuery('preview') === 'draft') {
$customFields = $customEntriesTable->links;
foreach ($customFields as $customField) {
if ($customField->custom_field->type !== 'CuCcBurgerEditor') {
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 と名前が決め打ちになってしまっているのが気になります
草稿フィールドの取得メソッドをプラグイン側に作る方針を考えたいですね

}
}

$controller->set(['customEntry' => $entity]);

// テンプレートの変更
Expand Down