XE Tip
xpressengine.com에서 제가 필요해 가져온 XE TIp들입니다.
BGM설치팁
글 수 186
2007.08
31
(최근글목록) 분류명 표시하기 & 이미지
조회수: 31, 추천수: 3, 2007.08.31 07:52:53
- 게시글 주소 : http://www.zeroboard.com/13806877
- 엮인글 주소 : http://www.zeroboard.com/13806877/trackback
미리보기
http://simulz.nayana.kr/zbxe/php_xe
목록에 분류명을 표시해 줍니다.
두개의 파일을 편집하면 됩니다.
newest_document.class.php
아래 부분을 찾아서 굵은 부분을 추가합니다. (foreach 이전에 $oDocumentModel = &getModel('document'); 정의 필수)
foreach($output->data as $key => $attribute) {
$document_srl = $attribute->document_srl;
$oDocument = null;
$oDocument = new documentItem();
$oDocument->setAttribute($attribute);
$oDocument->category = $oDocumentModel->getCategory($attribute->category_srl);
$document_list[$key] = $oDocument;
}
$document_srl = $attribute->document_srl;
$oDocument = null;
$oDocument = new documentItem();
$oDocument->setAttribute($attribute);
$oDocument->category = $oDocumentModel->getCategory($attribute->category_srl);
$document_list[$key] = $oDocument;
}
스킨/list.html
원하는 곳에 아래 소스를 삽입하세요.
<strong>{$oDocument->category->title}</strong>
분류명을 이미지로 나타내려면
아래 처럼 변경 후, 이미지 파일명을 분류번호.jpg 등으로 저장하면 됩니다. 경로는 알맞게 바꾸세요.
<img src="{$oDocument->category->category_srl}.jpg" />



자료실
MH 슬라이딩 배너 0....
MH 위젯스타일
prettyphoto - 본문내...
SCM 플레이어 사용법
XE 1.4.4.2버전 이후에...
네비게이션 위젯
IE 버젼별로 css 따로...
문서보기 유저 지정
문하우스 게시판스킨 V...
내용글 출력시 주소창에...




