mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-13 16:34:52 +09:00
데이터이전 또는 기타 문제로 위키모듈에서 생산된 페이지가 아닌 경우 document alias를 일괄적으로 부여할 수 있는 기능을 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6629 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
02b25cec25
commit
d384d206e7
12 changed files with 44 additions and 2 deletions
|
|
@ -30,7 +30,7 @@
|
|||
$args->alias_srl = getNextSequence();
|
||||
$args->module_srl = $module_srl;
|
||||
$args->document_srl = $document_srl;
|
||||
$args->alias_title = $alias_title;
|
||||
$args->alias_title = urldecode($alias_title);
|
||||
$query = "document.insertAlias";
|
||||
$output = executeQuery($query, $args);
|
||||
return $output;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,9 @@
|
|||
<action name="dispWikiAdminWikiAdditionSetup" type="view" standalone="true" />
|
||||
<action name="procWikiAdminInsertWiki" type="controller" standalone="true" />
|
||||
<action name="dispWikiAdminDeleteWiki" type="view" standalone="true" />
|
||||
<action name="dispWikiAdminArrange" type="view" standalone="true" />
|
||||
<action name="procWikiAdminDeleteWiki" type="controller" standalone="true" />
|
||||
<action name="procWikiAdminArrangeList" type="controller" standalone="true" />
|
||||
<action name="procWikiInsertDocument" type="controller" standalone="true" />
|
||||
<action name="procWikiInsertComment" type="controller" standalone="true" />
|
||||
<action name="procWikiDeleteComment" type="controller" standalone="true" />
|
||||
|
|
|
|||
|
|
@ -15,4 +15,6 @@
|
|||
$lang->contributors = 'Contributors';
|
||||
$lang->notice_old_revision = 'This is an old revision';
|
||||
$lang->restore = 'Restore';
|
||||
$lang->arrange_list = '목록 갱신';
|
||||
$lang->about_arrange_list = '데이터 이전하였거나 의도하지 않은 경우에 의해 제목 Alias가 설정되지 않아서 위키 글을 찾아갈 수 없는 문서들을 일괄적으로 제목 Alias를 설정해줍니다.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -15,4 +15,6 @@
|
|||
$lang->contributors = '投稿者';
|
||||
$lang->notice_old_revision = '過去のバージョンです。';
|
||||
$lang->restore = '差し戻し';
|
||||
$lang->arrange_list = '목록 갱신';
|
||||
$lang->about_arrange_list = '데이터 이전하였거나 의도하지 않은 경우에 의해 제목 Alias가 설정되지 않아서 위키 글을 찾아갈 수 없는 문서들을 일괄적으로 제목 Alias를 설정해줍니다.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -15,4 +15,6 @@
|
|||
$lang->contributors = '공헌자';
|
||||
$lang->notice_old_revision = '옛날 버전을 보고 계십니다';
|
||||
$lang->restore = '복원';
|
||||
$lang->arrange_list = '목록 갱신';
|
||||
$lang->about_arrange_list = '데이터 이전하였거나 의도하지 않은 경우에 의해 제목 Alias가 설정되지 않아서 위키 글을 찾아갈 수 없는 문서들을 일괄적으로 제목 Alias를 설정해줍니다.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -15,4 +15,6 @@
|
|||
$lang->contributors = 'Contributors';
|
||||
$lang->notice_old_revision = 'This is an old revision';
|
||||
$lang->restore = 'Restore';
|
||||
$lang->arrange_list = '목록 갱신';
|
||||
$lang->about_arrange_list = '데이터 이전하였거나 의도하지 않은 경우에 의해 제목 Alias가 설정되지 않아서 위키 글을 찾아갈 수 없는 문서들을 일괄적으로 제목 Alias를 설정해줍니다.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -15,4 +15,6 @@
|
|||
$lang->contributors = '作者';
|
||||
$lang->notice_old_revision = '此為舊版本';
|
||||
$lang->restore = 'Restore';
|
||||
$lang->arrange_list = '목록 갱신';
|
||||
$lang->about_arrange_list = '데이터 이전하였거나 의도하지 않은 경우에 의해 제목 Alias가 설정되지 않아서 위키 글을 찾아갈 수 없는 문서들을 일괄적으로 제목 Alias를 설정해줍니다.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
<li><a href="{getUrl('act','')}">{$lang->cmd_back}</a></li>
|
||||
<!--@end-->
|
||||
<li <!--@if($act=='dispWikiAdminWikiInfo'||$act=='dispWikiAdminInsertWiki')-->class="on"<!--@end-->><a href="{getUrl('act','dispWikiAdminInsertWiki')}">{$lang->cmd_view_info}</a></li>
|
||||
<li <!--@if($act=='dispWikiAdminArrange')-->class="on"<!--@end-->><a href="{getUrl('act','dispWikiAdminArrange')}">{$lang->arrange_list}</a></li>
|
||||
<li <!--@if($act=='dispWikiAdminGrantInfo')-->class="on"<!--@end-->><a href="{getUrl('act','dispWikiAdminGrantInfo')}">{$lang->cmd_manage_grant}</a></li>
|
||||
<li <!--@if($act=='dispWikiAdminWikiAdditionSetup')-->class="on"<!--@end-->><a href="{getUrl('act','dispWikiAdminWikiAdditionSetup')}">{$lang->cmd_addition_setup}</a></li>
|
||||
<li <!--@if($act=='dispWikiAdminSkinInfo')-->class="on"<!--@end-->><a href="{getUrl('act','dispWikiAdminSkinInfo')}">{$lang->cmd_manage_skin}</a></li>
|
||||
|
|
|
|||
|
|
@ -115,3 +115,4 @@ function doScrap(document_srl) {
|
|||
params["document_srl"] = document_srl;
|
||||
exec_xml("member","procMemberScrapDocument", params, null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,3 +47,6 @@ function doCartSetup(url) {
|
|||
popopen(url,'modulesSetup');
|
||||
}
|
||||
|
||||
function doArrangeWikiList(module_srl) {
|
||||
exec_xml('wiki','procWikiAdminArrangeList',{module_srl:module_srl},function() {location.reload();});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@
|
|||
function procWikiAdminDeleteWiki() {
|
||||
$module_srl = Context::get('module_srl');
|
||||
|
||||
// 원본을 구해온다
|
||||
$oModuleController = &getController('module');
|
||||
$output = $oModuleController->deleteModule($module_srl);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
@ -56,5 +55,26 @@
|
|||
$this->setMessage('success_deleted');
|
||||
}
|
||||
|
||||
function procWikiAdminArrangeList() {
|
||||
$oModuleModel = &getModel('module');
|
||||
$oDocumentController = &getController('document');
|
||||
|
||||
// 대상 위키 검증
|
||||
$module_srl = Context::get('module_srl');
|
||||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
|
||||
if(!$module_info->module_srl || $module_info->module != 'wiki') return new Object(-1,'msg_invalid_request');
|
||||
|
||||
// 대상 위키의 entry값이 없는 글을 추출
|
||||
$args->module_srl = $module_srl;
|
||||
$output = executeQueryArray('wiki.getDocumentWithoutAlias', $args);
|
||||
if(!$output->toBool() || !$output->data) return new Object();
|
||||
|
||||
foreach($output->data as $key => $val) {
|
||||
if($val->alias_srl) continue;
|
||||
$result = $oDocumentController->insertAlias($module_srl, $val->document_srl, $val->alias_title);
|
||||
if(!$result->toBool()) $oDocumentController->insertAlias($module_srl, $val->document_srl, $val->alias_title.'_'.$val->document_srl);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -122,5 +122,10 @@
|
|||
|
||||
$this->setTemplateFile('skin_info');
|
||||
}
|
||||
|
||||
function dispWikiAdminArrange() {
|
||||
|
||||
$this->setTemplateFile('arrange_list');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue