묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
mid 값 구하고 싶어요..
2010.08.24 14:42
ideationPopular.class.php
======================================================================
// 1주일 이내의 인기글을 구함
$db_args->sort_index = 'readed_count';
$db_args->order_type = 'desc';
$output = executeQueryArray('widgets.ideationPopular.getPopularDocuments', $db_args);
if($output->data) {
foreach($output->data as $k => $v) {
$oDocument = null;
$oDocument = $oDocumentModel->getDocument();
$oDocument->setAttribute($v, false);
$GLOBALS['XE_DOCUMENT_LIST'][$oDocument->document_srl] = $oDocument;
$output->data[$k] = $oDocument;
}
$oDocumentModel->setToAllDocumentExtraVars();
}
$widget_info->popular_documents = $output->data; list.html =========================================================== <!--%import("css/ideation.css")-->
<div class="popularSimple">
<ul>
<li>
<popular_documents">!--@if($widget_info->popular_documents)-->
<ul>
<popular_documents">!--@foreach($widget_info->popular_documents as $k => $v)-->
<li><a href="get('document_srl')}&mid={$v->get('mid'">http://www.ast.php?document_srl={$v->get('document_srl')}&mid={$v->get('mid')}" target="_top">{getLinkSubject($v->getTitle(), $widget_info->subject_cut_size)}</a></li>
<!--@end--><!-- {$v->getPermanentUrl()} --><!-- -->
</ul>
<!--@end-->
</li>
</ul>
</div>
링크시 게시판의 document_srl 과 mid 값을 같이 가져가고 싶은데요.. mid 값이 나오질 안네요.. 위의 소스를 수정하면 될듯 싶은데.. 방법을 도무지 모르겠어요... 도와 주세요...
$db_args->sort_index = 'readed_count';
$db_args->order_type = 'desc';
$output = executeQueryArray('widgets.ideationPopular.getPopularDocuments', $db_args);
if($output->data) {
foreach($output->data as $k => $v) {
$oDocument = null;
$oDocument = $oDocumentModel->getDocument();
$oDocument->setAttribute($v, false);
$GLOBALS['XE_DOCUMENT_LIST'][$oDocument->document_srl] = $oDocument;
$output->data[$k] = $oDocument;
}
$oDocumentModel->setToAllDocumentExtraVars();
}
$widget_info->popular_documents = $output->data; list.html =========================================================== <!--%import("css/ideation.css")-->
<div class="popularSimple">
<ul>
<li>
<popular_documents">!--@if($widget_info->popular_documents)-->
<ul>
<popular_documents">!--@foreach($widget_info->popular_documents as $k => $v)-->
<li><a href="get('document_srl')}&mid={$v->get('mid'">http://www.ast.php?document_srl={$v->get('document_srl')}&mid={$v->get('mid')}" target="_top">{getLinkSubject($v->getTitle(), $widget_info->subject_cut_size)}</a></li>
<!--@end--><!-- {$v->getPermanentUrl()} --><!-- -->
</ul>
<!--@end-->
</li>
</ul>
</div>
링크시 게시판의 document_srl 과 mid 값을 같이 가져가고 싶은데요.. mid 값이 나오질 안네요.. 위의 소스를 수정하면 될듯 싶은데.. 방법을 도무지 모르겠어요... 도와 주세요...