baserproject / basercms

baserCMS : Based Website Development Project
http://basercms.net
Other
165 stars 126 forks source link

【ブログ】ブログをコンテンツツリー上で移動しURLを変更した場合に、検索インデックス上の記事のURLが変更されない #1470

Open seto1 opened 4 years ago

seto1 commented 4 years ago

概要

ブログをコンテンツツリー上で移動しURLを変更した場合に、検索インデックス上の記事のURLが変更されない

baserCMS version : baserCMS 4.3.4-dev

TODO

seto1 commented 4 years ago

Issue 登録ガイドラインを参考に、issueにBugラベルをつけようとしたのですが、権限の問題か出来ませんでした。

ryuring commented 4 years ago

@seto1 そなんですね、コラボレーターしかできないのかも

ryuring commented 4 years ago

@seto1 ガイドラインを変更しておきます

ryuring commented 4 years ago

変更しました。 https://github.com/baserproject/basercms/wiki/Issue-%E7%99%BB%E9%8C%B2%E3%82%AC%E3%82%A4%E3%83%89%E3%83%A9%E3%82%A4%E3%83%B3

seto1 commented 4 years ago

メモ

■アラートについて TODO: ブログを移動した際、検索インデックス再構築のアラートを出すようにする https://github.com/baserproject/basercms/issues/1424#issuecomment-625135847

js/admin/libs/jquery.bcTree.js orderContent()内の並び替え成功時に処理を追加すると実現できる。

orderContent: function(e, data) {
    ...
    success: function (result) {
        ...
        if (node.state.contentType === 'BlogContent') {
            alert('....');
        }
        ...
    },
    ...
},

ただ、プラグインであるブログに関する処理をここに追加するのは間違ってそう。 コンテンツ並び替え完了後のメッセージ表示用の設定を追加して、外部から動的に設定できるようにするのが良い?

ryuring commented 4 years ago

コンテンツ並び替え完了後のメッセージ表示用の設定を追加して、外部から動的に設定できるようにするのが良い?

確かにそうですね。外部から設定できるAPIを考えないといけないですね。