묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
특정 확장변수 본문에서 관리자만 보이도록 하고 싶습니다...
2018.02.12 17:42
특정 확장변수를 본문에서는 관리자만 볼 수 있도록 하고 싶습니다.
힌트 좀 부탁드립니다 ( _ _ )
@ AA라고 하는 확장변수를 본문에서 관리자만 볼 수 있도록.
<div class="_bd clear">
<!--// 확장변수 -->
<table cond="$oDocument->getExtraVars() || $oDocument->hasUploadedFiles()" class="et_vars">
<caption class="blind">Extra Form</caption>
<tr cond="$oDocument->hasUploadedFiles() && $mi->view_files != 'off_all'" id="files_{$oDocument->document_srl}" class="rd_file">
<th class="fw_5" scope="row">첨부</th>
<td>
<block loop="$oDocument->getUploadedFiles()=>$key,$file">
{@
$ext = substr($file->source_filename, -4);
$ext = strtolower($ext);
$ext_img = in_array($ext, array('.jpg','jpeg','.gif','.png'));
}
<!--@if($mi->view_files == 'except_img')-->
<a cond="!$ext_img" href="{getUrl('')}{$file->download_url}" title="[File Size:{FileHandler::filesize($file->file_size)}/Download:{number_format($file->download_count)}]">{$file->source_filename}<span class="comma mrg_2r">,</span></a>
<!--@else-->
<a href="{getUrl('')}{$file->download_url}" title="[File Size:{FileHandler::filesize($file->file_size)}/Download:{number_format($file->download_count)}]">{$file->source_filename}<span class="comma mrg_2r">,</span></a>
<!--@end-->
</block>
</td>
</tr>
<tr loop="$oDocument->getExtraVars() => $key,$val" cond="$val->getValueHTML()">
<th class="fw_5" scope="row">{$val->name}</th>
<td>{$val->getValueHTML()}</td>
</tr>
</table>
<article>{$oDocument->getContent(false)}</article>
도와주세용 ㅠ