최근글 출력시 제목은 글씨수 컷이 있습니다..
확장변수로 주소를 입력받아서 10자정도에서 컷 시키고 싶습니다..
<!--@if($oDocument->extra_value)-->
<font color="#666666"> {$oDocument->extra_value}
<!--@end-->
여기에서 어떻게 컷을 줄수있을까요 ?
최근글 출력시 제목은 글씨수 컷이 있습니다..
확장변수로 주소를 입력받아서 10자정도에서 컷 시키고 싶습니다..
<!--@if($oDocument->extra_value)-->
<font color="#666666"> {$oDocument->extra_value}
<!--@end-->
여기에서 어떻게 컷을 줄수있을까요 ?
이병재님 반갑습니다.
저도 그 부분은 잘 모르겠네요.
일단 아래의 소스가 닉네임을 글자수 만큼 자르는 방법입니다. 참고해 보세요.
<span class="name"><font color="#ff6600">*</font> {$val->nick_name} </span>
<span class="name"><font color="#ff6600">*</font> {cut_str($val->getNickName(), 6, "")} </span>