<!--내글수정하기-->
{@ $sub1 = array('sub101', 'sub102', 'sub103', 'sub104', 'sub105', 'sub106'); }
<block cond="in_array($mid, $sub1)">
<style>
   .edit-myarticle{text-align:center;padding:10px 0;}
   .edit-myarticle a{text-decoration:none;padding:7px 12px;display:block;font-weight:800;color:#4d4b7e;overflow:hidden;}
   .edit-myarticle a:hover{text-decoration:none;background:#7a78bb;color:#fff;}
   .edit-myarticle button{border:1px solid #4d4b7e;border-radius:5px;background:#fff;padding:0;overflow:hidden;}
</style>
{@
// $oDocumentModel = getModel('document');
// $document_srl = $oDocumentModel->getDocumentCountByMemberSrl($logged_info->member_srl);
$oDB = &DB::getInstance();
$query = $oDB->_query('select document_srl from xe_documents where module_srl = '.$module_info->module_srl.' AND member_srl = '.$logged_info->member_srl.' ORDER BY regdate DESC LIMIT 1');
$result = $oDB->_fetch($query);
}
<div class="edit-myarticle">
   <button><a href="{getUrl('mid',$mid,'act','dispBoardWrite','document_srl',$result->document_srl)}">내글수정</a></button>
</div>
</block>
<!--// 내글수정하기-->

xml로 만드는건 좀더 연구해보고 올리겠습니다.

 

ps. 새팁 올릴려다 보니 이전 글쓰던게 있어서 그냥 별 확인없이 올려봅니다;;

이온디

profile
이온디는 라이믹스를 비롯한 다양한 CMS의 시드뱅크를 꿈꿉니다. 여러분들이 사랑하는 웹소스를 언제든지 사용할 수 있게 하기 위해 이온디는 매일 소스코드를 유지보수하고 있으며, 언제든지 다운로드할 수 있는 소스마켓을 운영하고 있습니다.

#XE마켓 - 이온디스토어
https://eond.com/xemarket/

# XE/라이믹스 단톡방을 운영 중입니다. (비번: 2022)
https://open.kakao.com/o/giaKKnl

# XE/라이믹스 생활코딩 모듈 강좌입니다.
https://opentutorials.org/module/3774
  • ?
    이게 정확히 수정 버튼만 만들어주는거죠?