http://www.zeroboard.com/16467971 여기
이미지 자동본문 출력 팁을 적용해봤는데요.
옛날에 낮은버전에선 잘 되었었습니다만.
지금 적용하면 안되더군요;
소스는 아래와 같습니다.
꼭 답변좀 부탁드립니다..ㅠㅠ
자세히는 모르겠지만
이 부분을 <!--@if($module_info->auto_img_insert!='N')--> 이걸 추가하기만 하면 오류가 나는것 같습니다..
음 왜그런건가요..실수는 절대로 없었습니다.
답변좀 부탁드려요 ㅠ
<!--@else-->
<!--@if($module_info->auto_img_insert!='N')-->
{@ $uploaded_list = $oDocument->getUploadedFiles() }
<!--@foreach($uploaded_list as $key => $file)-->
{@$file_explode=explode(".",strtoupper($file->source_filename))}
<!--@if($file_explode[1]=="GIF" || $file_explode[1]=="JPG" || $file_explode[1]=="PNG" || $file_explode[1]=="BMP")-->
{@$picture.="<p align=center><img src='".$file->uploaded_filename."' style='' editor_component='image_link' /></p><br />"}
<!--@end-->
<!--@end-->
<!--@if($picture)-->
{@ $cont=$oDocument->get('content')}
{@ $oDocument->add('content',$cont.$picture)}
<!--@end-->
{$oDocument->getContent()}
<!--@else-->
{$oDocument->getContent()}
<!--@end-->