웹마스터 팁

스킨파일 중 view_document.html 에서 확장변수 출력부분이 다음과 같은데요.    



        <!--@if($oDocument->isExtraVarsExists() && (!$oDocument->isSecret() || $oDocument->isGranted()) )-->
        <table cellspacing="0" summary="" class="extraVarsList">
        <col width="150" />
        <col />
        <!--@foreach($module_info->extra_vars as $key => $val)-->
            <!--@if($val->name)-->
        <tr>
            <th scope="row">{$val->name}</th>
            <td>
                <!-- 확장변수(extra_var)의 type에 따른 값을 출력하기 위해서 특별히 제작된 파일을 include 한다 -->
                <!--#include("./extra_var_value.html")-->
            </td>
        </tr>
            <!--@end-->
        <!--@end-->
        </table>
        <!--@end--> 

이것을 지우고... {$oDocument->getExtraValue(변수순서)}  를 확장변수를 출력하고 싶은 곳에 써주면 됩니다. 첫번째 확장변수를 출력시키고 싶다면 {$oDocument->getExtraValue(1)} 하면되겠네요.  실력이 없다보니... 이것 찾는데도 시간이 걸리네요. 그래도 유용한 팁이 되었으면 좋겠습니다.