리스트에서 스마트에디터로 올린 첫번째 이미지를 뽑아올려면
본문
어떤 코드가 필요한가요?
답변 2
common.lib.php에 get_editor_image() 함수가 있습니다.
get_editor_image($row[wr_content]) 해서 이미지만 뽑아올 수 있을거같네요
위에서 응용해서
$list_img = get_editor_image($row['wr_content']);
이미지가 2차원 배열로 나오네요
echo get_view_thumbnail($list_img[0][0],120);
120px로 첫번째 이미지가 생성됩니다
echo get_view_thumbnail($list_img[0][1],120); // 2번째 이미지가 썸네일로 생성됩니다
답변을 작성하시기 전에 로그인 해주세요.