웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
게시판의 오늘 올라온 새글의 갯수를 알아내는 방법
2014.08.22 15:18
{@
$args =new stdClass();
$args->module_srl = $module_info->module_srl;
$args->s_regdate = date("Ymd");
$output = executeQuery('document.getDocumentCount', $args);
$total_count = $output->data->count;
}
저는 스케치북을 쓰는데
_breadcrumb.html 파일의 최상단에 위의 코드를 집어넣고
<strong> Today new articles : {$total_count}</strong>
이 태그를 넣어주면 오늘 올라온 해당 개시판의 글수만 카운트해서 보여줍니다
제가 검색해보니 없어서 올립니다.
ps..게시글이 많으면 느려질수 잇겠죠 ㅅㅎㅎㅎ