묻고답하기
특정 글을 목록에서 숨김처리하려면???
2013.08.25 21:18
코어 1.5.4.3
게시판 기본게시판...
안녕하세요...궁금한 점이 있어 문의 드립니다....
리스트 형식에서 일반적으로 글을 쓰면 목록에 글이 표시되는데...
저는 확장변수를 만들어 이 확장변수에 체크가 되면 목록자체에서 일반 회원들은 체크된 글은 안보이고 일반회원들이 적은 목록만 보이는
게시판을 만들고자 합니다.
1. 리스트형식 목록에서 "숨김"이란 확장변수를 만들고 관리자가 글을쓸때 숨김에 체크를 하면...
일반 회원은 목록에서 이 글이 안보이고 관리자는 일반글과 숨김으로 표시된 글 모두를 볼 수 있는 방법이 있나요???
2. 아니면...카테고리로 "일반글", "관리자글"로 만들면...
일단은 목록화면에 일반글과 관리자글이 순서대로 섞어 보일텐데...
이때 "관리자글" 카테고리 글은 일반회원에게 안보이고 관리자는 모두 보이는 게시판...
물론 카테고리 역시 관리자만 보이게 하고 싶습니다....
글 등록시 카테고리 선택이 되어야할텐데..이부분은 구글링 해보니 있어, 문제가 안되는데....
조언이래두 감사히 받겠습니다...
_style.list.html
<!--// 목록 콘텐츠 출력 -->
<tr class="bg{($no+1)%2+1}" loop="$document_list=>$no, $document" onmouseover='this.style.backgroundColor="#222"' onmouseout='this.style.backgroundColor=""' >
<block loop="$list_config=>$key,$val">
<!--// 기본 컨텐츠일 경우 -->
<!--@if($val->idx == -1)-->
<!--// 컨텐츠 종류에 따라서 출력 -->
<td class="num" cond="$val->type == 'no'">
<span cond="$document_srl==$document->document_srl">»</span>
<span cond="$document_srl!=$document->document_srl">{$no}</span>
</td>
<td class="title" cond="$val->type == 'title'">
<!-- 분류 출력-->
<block cond="$module_info->use_category == 'Y' && $document->get('category_srl')">
<strong class="category" style="color:{$category_list[$document->get('category_srl')]->color};"|cond="$category_list[$document->get('category_srl')]->color && $category_list[$document->get('category_srl')]->color != 'transparent'">
{$category_list[$document->get('category_srl')]->title}
</strong>
</block>
<!-- 제목 출력-->
<a href="{getUrl('document_srl',$document->document_srl, 'listStyle', $listStyle, 'cpage','')}">
<span class="titles" style="<!--@if($module_info->subject_font_size)-->font-size:{$module_info->subject_font_size}px;<!--@end-->font-weight:{$module_info->subject_font_weight}"> {$document->getTitle($module_info->subject_cut_size)}</span>
</a>
<block cond="$module_info->display_new !='N'">{$document->printExtraImages(60*60*$module_info->duration_new)}</block>
<!-- 댓글 출력-->
<a href="{getUrl('document_srl', $document->document_srl)}#comment" cond="$document->getCommentCount()">
<span class="replyNum" title="Replies">+{$document->getCommentCount()}</span>
</a>
<!-- 트랙백 출력-->
<a href="{getUrl('document_srl', $document->document_srl)}#trackback" cond="$document->getTrackbackCount()">
<span class="trackbackNum" title="Trackbacks">+ {$document->getTrackbackCount()}</span>
</a>
</td>
<td class="author" cond="$val->type == 'nick_name'">
<!--<a href="#popup_menu_area" class="member_{$document->get('member_srl')}" onclick="return false">-->{substr($document->getNickName(),0,-3)}0<!--{$document->getNickName()}</a>-->
</td>
<td class="author" cond="$val->type == 'user_id'">{$document->getUserID()}</a></td>
<td class="author" cond="$val->type == 'user_name'">{$document->getUserName()}</a></td>
<td class="date" cond="$val->type == 'regdate'">{$document->getRegdate('Y-m-d')}</td>
<td class="date" cond="$val->type == 'last_update'">{zdate($document->get('last_update'),'Y-m-d H:i')}</td>
<td class="reading" cond="$val->type == 'readed_count'">{$document->get('readed_count')>0?$document->get('readed_count'):' '}</td>
<td class="recommend" cond="$val->type == 'voted_count'">{$document->get('voted_count')!=0?$document->get('voted_count'):' '}</td>
<td class="lastReply" cond="$val->type == 'last_post'">
<block cond="(int)($document->get('comment_count'))>0">
<a href="{$document->getPermanentUrl()}#comment" class="replyAnchor">{zdate($document->get('last_update'),'Y-m-d')} {zdate($document->get('last_update'),'H:i')}</a>
<span class="author" cond="$document->get('last_updater')">
{htmlspecialchars($document->get('last_updater'))}
</span>
</block>
<block cond="(int)($document->get('comment_count'))==0"> </block>
</td>
<!--// 사용자 선언 확장변수일 경우 -->
<td>{$document->getExtraValueHTML($val->idx)} </td>
<!--@end-->
</block>
댓글 2
글쓴이 | 제목 | 최종 글 |
---|---|---|
XE | 공지 글 쓰기,삭제 운영방식 변경 공지 [16] | 2019.03.05 by 남기남 |
poko | 로그인버튼이 안 움직임 | |
poko | my info 페이지는 어디서 수정하나요? | |
플로어 | 회원별게시판 [1] | 2010.02.08 by philos |
엘카 | 언어를 바꾸고 페이지 이동하는 스크립트 [1] | 2010.02.08 by 엘카 |
윤정용796 | 요청하신 모듈을 찾을 수 없습니다. [2] | 2010.02.08 by 라르게덴 |
몽키킴 | 제로보드 처음사용하는데요. 강좌 없나요..게시판 생성을... [1] | 2010.02.08 by 유샤인 |
잇큐 | <--! --> 이형태는 무슨기능을 하는건가요? [2] | 2010.02.08 by 행복한고니 |
아진검 | 게시판 스킨변경법 | |
열심히 살자~ | 메인 화면 관하여.... [1] | 2010.02.08 by 아진검 |
6267 | textyle 가 뭔가요?;;; [1] | 2010.02.08 by philos |
umjovi | 관리자페이지가 함께 변하는 경우? | |
파농 | 셋팅화면에서 시작페이지 설정 후 관리자페이지에서 저장이 되지않는 문제 [2] | 2010.02.08 by Gekkou |
오스카 | xe최신버전 ftp업로드시 "응답:550 index.php: Permission denied" 라고 나옵니다. | |
CraZyWoo | 혹시 이런 스킨 있나요? | |
흑묘백묘 | 글쓰기 페이지에서 첨부파일 미리보기 부분에 관련된파일은 어떤것이 있죠? [2] | 2010.02.08 by 흑묘백묘 |
에스케 | 홈페이지 제작 관련 [1] | 2010.02.08 by 똑디 |
이유진349 | 정말 만들어진 카테고리 별로 최신 글 뽑아오는 법 없는지요..? | |
한주네 | 위젯상자를 둘로 나누는 방법을 가르쳐 주세요. [1] | 2010.02.08 by 휘즈 |
플로어 | 설치경로를 xe폴더로안하고 [1] | 2010.02.08 by 백성찬 |
TDPS | 설치후 로그인이 안되요.. [1] | 2010.02.08 by 백성찬 |
목록에 안 나타나긴하겠지만, 그 공간이 안 나타나는 것뿐
추출할때부터 제외되는건 아니기에, 목록수가 줄어들겁니다. 결국 페이지마다 목록수가 변동이 생기겠죠
목록수를 동일하게 하면서 출력을 제어하려면 이건 Core 를 건드려야해서 복잡하고..
그냥 출력만 제어하는 방법을 알려드리면
스킨에서, 목록 출력하는 부분에서
<tr class="bg{($no+1)%2+1}" loop="$document_list=>$no, $document" onmouseover='this.style.backgroundColor="#222"' onmouseout='this.style.backgroundColor=""' >
를
<block loop="$document_list=>$no, $document">
<!--@if(!$grant->manager && $document->getExtraEidValue('확장변수eid'))-->
<!--@else-->
<tr class="bg{($no+1)%2+1}" onmouseover='this.style.backgroundColor="#222"' onmouseout='this.style.backgroundColor=""' >
~~~~
끝부분에 안 적어주시긴 했는데
</tr> 다음에
<!--@end-->
</block>
를 추가해주시면 됩니다.