연관글 출력 애드온 ( https://xe1.xpressengine.com/index.php?mid=download&package_id=18325813 ) 을 이용 해보려고 합니다.
글 수집 설정 > 사용 대상 모듈의 글을 선택하고 태그를 가져올 게시판을 선택 했습니다.
작동은 잘되는데요.
특정 단어 ( 태그 )들은 위에서 애드온 설정에서 선택한 게시판 중 특정 mid에서만 추출하려고 하는데 이 때 조건문을 어떻게 사용해야 하는지 혹시 도움 좀 받을 수 있을까요?
태그 단어가 a와b 일때는 애드온에서 선택한 게시판 중 mid명이 c인 게시판에서만 아래 로직( 연관글 출력부분)이 실행되려고 합니다.
<div class="tag_relation">
<!--@if($tag_relation->title)--><div class="title">{$tag_relation->title}</div><!--@end-->
<ol>
<!--@foreach($tag_relation_document_list as $oDocument)-->
<li>
<!--// 작성일 -->
<!--@if($tag_relation->print_regdate != 'N')--><span class="regdate">{$oDocument->getRegdate('Y.m.d')} </span><!--@end-->
<!--// 모듈제목 -->
<!--@if($tag_relation->print_module_title == 'Y')--><span class="module_title">{$oDocument->get('module_title')}</span><!--@end-->
<!--// 제목 -->
<a href="{$oDocument->getPermanentUrl()}" <!--@if($tag_relation->link_target == 'new')-->onclick="window.open(this.href); return false;"<!--@endif--> <!--@if($tag_relation->cut_subject)-->title="{$oDocument->getTitleText()}"<!--@endif-->>{$oDocument->getTitleText($tag_relation->cut_subject)}</a>
<!--// 작성자 -->
<!--@if($tag_relation->print_author != 'N')--><span class="author member_{$oDocument->get('member_srl')}"> by {$oDocument->getNickName()}</span><!--@end-->
<!--// 조회수/추천수 -->
<!--@if(($tag_relation->print_voted_count != 'N' && $oDocument->get('voted_count') > 0) || $tag_relation->print_readed_count != 'N')-->
{@ $vote_read_count = array()}
<!--@if($tag_relation->print_readed_count != 'N')-->
{@ $vote_read_count[] = '<span class="readed_count" title="조회 수">'.$oDocument->get('readed_count').'</span>'}
<!--@endif-->
<!--@if($tag_relation->print_voted_count != 'N' && $oDocument->get('voted_count') > 0)-->
{@ $vote_read_count[] = '<span class="voted_count" title="추천 수">'.$oDocument->get('voted_count').'</span>'}
<!--@endif-->
<span class="readAndVoted">({implode(', ', $vote_read_count)})</span>
<!--@endif-->
<!--@if($tag_relation->print_comment_count != 'N' && $oDocument->getCommentCount() >= 1)--><span class="comment_cnt" title="댓글 수">*{$oDocument->getCommentCount()}</span><!--@end-->
</li>
<!--@endforeach-->
</ol>
</div>
이건 조금 복잡하게 php 에서 조건을 거셔야 할 겁니다. 스킨이 아닌 php 파일