묻고답하기
최근글 불러오기에서 쓴글의 내용 불러오기
2015.03.01 09:08
안녕하세요?
newest_document_tab 모듈로 최근글을 불러오는데요.
제목 이미지 등등 불러오게 되어있는데 내용에서 한 40자 정도 불러 오고 싶은데 어떻게 해야 할까요?
코드는 아래와 같습니다.
{@ $_id_prefix = rand(1111111,9999999)}
{@ $_checked = false; }
<div class="newest_left_teb_gallery">
<div class="inside01">
<div class="inside02">
<div class="tabBox">
<div class="tabcap">
<!--@foreach($tab_list as $key => $val)-->
<div class="tab <!--@if(!$_checked)-->on"{@ $_checked = true;}<!--@end-->" id="tab_{$_id_prefix}_{$key}" onmouseover="overTab(this);">
<div><a href="{getUrl('','mid',$val->mid)}" onfocus="this.blur()">{htmlspecialchars($val->browser_title)}</a></div></div>
<!--@end-->
</div>
<div class="tabtitle">
<!--@if($widget_info->title)-->
{$widget_info->title} {$widget_info->order_target}
<!--@end-->
</div>
</div>
{@ $_checked = false; }
<!--@foreach($tab_list as $key => $val)-->
<div class="tabContent <!--@if(!$_checked)-->show{@ $_checked = true;}<!--@else-->hide<!--@end-->" id="content_{$_id_prefix}_{$key}">
{@ $_thumbnail_checked = false; }
<table cellspacing="0">
<tr>
<!--@foreach($val->document_list as $k => $v)-->
<td>
<table cellspacing="0">
<tr>
<td class="thumbnail" width="{$widget_info->thumbnail_width+12}">
<a href="{getUrl('','document_srl',$v->document_srl)}" onfocus="this.blur()"><img src="{$v->getThumbnail($widget_info->thumbnail_width,$widget_info->thumbnail_height,$widget_info->thumbnail_type)}" border="0" alt="" /></a>
</td>
<tr><td height=5></td></tr>
<tr>
<td class="titleBox">
<span class="title"><a href="{$v->getPermanentUrl()}#{$v->getCommentCount()}" onfocus="this.blur()">{$v->getTitle($widget_info->subject_cut_size)}</a></span>
<!--@if($widget_info->display_regdate == 'Y')-->
<span class="regdate">[{$v->getRegdate("y-m-d")}]</span>
<!--@end-->
<!--@if($widget_info->display_author == 'Y')-->
<span class="author">by {$v->getNickName()}</span>
<!--@end-->
<!--@if($widget_info->display_readed_count == 'Y' || $widget_info->display_voted_count == 'Y' )-->
<span class="readAndVoted">
(<!--@if($widget_info->display_readed_count == 'Y')--><span class="readed">{$v->get('readed_count')}</span><!--@end--><!--@if($widget_info->display_voted_count == 'Y' && $v->get('voted_count')>0 )--><!--@if($widget_info->display_readed_count == 'Y')-->/ <!--@end--><span class="voted">{$v->get('voted_count')}</span><!--@end-->)
</span >
<!--@end-->
</td>
</tr>
<!--[if IE 7]>
<tr><td height=2></td></tr>
<![endif]-->
</table>
</td>
<!--@end-->
</tr>
</table>
</div>
<!--@end-->
<div class="clear"></div>
</div>
</div>
</div>
고수님 부탁드립니다.