묻고답하기
엑티브박스 애드온 본문아이디 설정방법?
2009.01.18 06:05
[설명]
view_document.html 파일에서는 파일 내용중에서 아래 내용이 있는 부분의 DIV 객체의 ID를 적으면 됩니다.
마찬가지로 없다면 id="[아이디명]" 을 추가합니다.
아래 내용과 똑같지는 않더라도 {$oDocument->getContent()} 가 들어있는 DIV 객체의 ID를 적으면 됩니다.
예)<div id="DocumentContent" class="contentBody">
{$oDocument->getContent()}
</div>
............................................................................
아래는 view_document.html 파일을 열은것입니다.파일을 보고 또 봐도 어디에 id를 적으라는건지 모르기에 질문드립니다.
<!-- 글 내용 보여주기 -->
<!--@if(($document_srl || $rnd)&&count($document_list)==1)-->
{@ $block_class = "blog_not_fold"; }
{@ $display_style = "block"; }
<!--@else-->
{@ $block_class = "blog_auto_fold"; }
{@ $display_style = "none"; }
<!--@end-->
<!-- 글 내용 보여주기 -->
<div class="boardRead">
<div class="originalContent">
<div class="readHeader">
<div class="dateLabel"><span class="dateDay">{$oDocument->getRegdate('d')}</span><br />
<span class="dateMonth">{$oDocument->getRegdate('Y.m')}</span>
</div>
<div class="titleAndUser">
<div class="title">
<h4><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getTitle()}</a></h4>
<span class="uri">// Document: <a href="{$oDocument->getPermanentUrl()}">{$oDocument->getPermanentUrl()}</a></span>
<span class="date">{$oDocument->getRegdate('Y.m.d')} {$oDocument->getRegdate('H:i:s')} ({$oDocument->getIpaddress()})</span>
<!--@if($module_info->use_category == "Y" && $oDocument->get('category_srl'))-->
<span class="category">Category: <a href="{getUrl('category',$oDocument->get('category_srl'), 'document_srl', '')}"><strong>{$category_list[$oDocument->get('category_srl')]->title}</strong></a></span><!--@end--><br />
<!--@if($grant->write_comment && $oDocument->allowComment()) -->
<span class="replyCount"><a href="#" onclick="toggle_object('blog_comment_{$oDocument->document_srl}'); return false;" title="{$lang->comment}">{$oDocument->getCommentcount()} Comments</a></span><!--@end-->
<!--@if($oDocument->allowTrackback() && $oDocument->getTrackbackCount() )-->
<span class="trackbackCount"><a href="#" onclick="toggle_object('blog_trackback_{$oDocument->document_srl}'); return false;" title="{$lang->trackback}">{$oDocument->getTrackbackCount()} Trackback</a></span><!--@end-->
<span class="readedCount">{$oDocument->get('readed_count')} Views</span>
<!--@if($oDocument->get('voted_count')!=0 || $oDocument->get('blamed_count')!=0)-->
<span class="votedCount">{$oDocument->get('voted_count')} Voted / {$oDocument->get('blamed_count')} Devoted</span><!--@end-->
</div>
<!--@if($module_info->display_author!='N')-->
<div class="userInfo">
<!--@if(!$oDocument->getMemberSrl())-->
<div class="author">
<!--@if($oDocument->isExistsHomepage())-->
<a href="{$oDocument->getHomepageUrl()}" onclick="window.open(this.href);return false;">{$oDocument->getNickName()}</a>
<!--@else-->
{$oDocument->getNickName()}
<!--@end-->
</div>
<!--@else-->
<div class="author"><span class="member_{$oDocument->get('member_srl')}">{$oDocument->getNickName()}</span></div>
<!--@end-->
</div>
<!--@end-->
</div><!--titleAndUser out -->
</div>
<div class="clear"></div>
<!--@if($oDocument->isExtraVarsExists() && (!$oDocument->isSecret() || $oDocument->isGranted()) )-->
<table cellspacing="0" summary="" class="extraVarsList">
<col width="150" />
<col />
<!--@foreach($module_info->extra_vars as $key => $val)-->
<!--@if($val->name)-->
<tr>
<th scope="row">{$val->name}</th>
<td>
<!-- 확장변수(extra_var)의 type에 따른 값을 출력하기 위해서 특별히 제작된 파일을 include 한다 -->
<!--#include("./extra_var_value.html")-->
</td>
</tr>
<!--@end-->
<!--@end-->
</table>
<!--@end-->
<div class="readBody">
<div class="contentBody">
<!--@if($oDocument->isSecret() && !$oDocument->isGranted())-->
<!--%import("filter/input_password.xml")-->
<div class="secretContent">
<form action="./" method="get" onsubmit="return procFilter(this, input_password)">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<div class="title">{$lang->msg_is_secret}</div>
<div class="content"><input type="password" name="password" id="cpw" class="inputTypeText" /><span class="button"><input type="submit" value="{$lang->cmd_input}" accesskey="s" /></span></div>
</form>
</div>
<!--@else-->
{$oDocument->getContent()}
<!--@end-->
<div class="toggleBox">
<strong><a href="#" onclick="toggle_object('blog_comment_{$oDocument->document_srl}'); return false;" title="{$lang->comment}">댓글보기({$oDocument->getCommentcount()}개)</a> | <a href="#" onclick="toggle_object('blog_trackback_{$oDocument->document_srl}'); return false;" title="{$lang->trackback}">엮인글보기</a></strong>
</div>
<div class="clear"></div>
<!-- 서명 / 프로필 이미지 출력 -->
<!--@if($oDocument->getProfileImage() || $oDocument->getSignature())-->
<div class="memberSignature">
<!--@if($oDocument->getProfileImage())-->
<div class="profile"><img src="{$oDocument->getProfileImage()}" alt="profile" /></div>
<!--@end-->
<!--@if($oDocument->getSignature())-->
<div class="signature">{$oDocument->getSignature()}</div>
<!--@end-->
<div class="clear"></div>
</div>
<!--@end-->
</div>
</div>
{@ $tag_list = $oDocument->get('tag_list') }
<!--@if(count($tag_list))-->
<div class="tag">
<ul>
<!--@for($i=0;$i<count($tag_list);$i++)-->
{@ $tag = $tag_list[$i]; }
<li><a href="{getUrl('search_target','tag','search_keyword',$tag,'document_srl','')}" rel="tag">{htmlspecialchars($tag)}</a><!--@if($i<count($tag_list)-1)-->, <!--@end--></li>
<!--@end-->
</ul>
</div>
<!--@end-->
<!--@if($oDocument->hasUploadedFiles())-->
<div class="fileAttached">
{@ $uploaded_list = $oDocument->getUploadedFiles() }
<ul>
<!--@foreach($uploaded_list as $key => $file)-->
<li><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} ({FileHandler::filesize($file->file_size)})({number_format($file->download_count)})</a></li>
<!--@end-->
</ul>
<div class="clear"></div>
</div>
<!--@end-->
</div>
<!-- 목록, 수정/삭제 버튼 -->
<div class="contentButton">
<!--@if($module_info->default_style != 'blog')-->
<a href="{getUrl('document_srl','')}" class="button"><span>{$lang->cmd_list}</span></a>
<!--@end-->
<!--@if($oDocument->isEditable())-->
<a href="{getUrl('act','dispBoardWrite'+
'+
','document_srl',$oDocument->document_srl,'comment_srl','')}" class="button"><span>{$lang->cmd_modify}</span></a>
<a href="{getUrl('act','dispBoardDelete','document_srl',$oDocument->document_srl,'comment_srl','')}" class="button"><span>{$lang->cmd_delete}</span></a>
<!--@end-->
</div>
</div>
<!-- 엮인글 -->
<div id="blog_trackback_{$oDocument->document_srl}" style="display:none">
<!--@if($oDocument->allowTrackback())-->
<!--#include("./trackback.html")-->
<!--@end-->
</div>
<!-- 댓글 -->
<div id="blog_comment_{$oDocument->document_srl}" style="display:none">
<a name="comment"></a>
<!--#include("./comment.html")-->
</div>
<!-- 댓글 입력 폼 -->
<!--@if($grant->write_comment && $oDocument->isEnableComment() )-->
<!--%import("filter/insert_comment.xml")-->
<form action="./" method="post" onsubmit="return procFilter(this, insert_comment)" class="boardEditor" >
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
<input type="hidden" name="comment_srl" value="" />
<input type="hidden" name="content" value="" />
<div class="boardWrite commentEditor">
<div class="outterGlow">
<div class="alertBox_reply">{$lang->comment}</div><!--alertBox out -->
<div class="userNameAndPw">
<!--@if(!$is_logged)-->
<label for="userName">{$lang->writer}</label>
<input type="text" name="nick_name" value="" class="userName inputTypeText" id="userName"/>
<label for="userPw">{$lang->password}</label>
<input type="password" name="password" value="" id="userPw" class="userPw inputTypeText" />
<label for="emailAddress">{$lang->email_address}</label>
<input type="text" name="email_address" value="" id="emailAddress" class="emailAddress inputTypeText"/>
<label for="homePage">{$lang->homepage}</label>
<input type="text" name="homepage" value="" id="homePage" class="homePage inputTypeText"/>
<!--@else-->
<input type="checkbox" name="notify_message" value="Y" id="notify_message" />
<label for="notify_message">{$lang->notify}</label>
<!--@end-->
<input type="checkbox" name="is_secret" value="Y" id="is_secret" />
<label for="is_secret">{$lang->secret}</label>
</div>
<div class="editor">{$oDocument->getCommentEditor()}</div>
</div><!--outterGlow out -->
</div><!--boardWrite out -->
<div class="commentButton tRight">
<span class="button"><input type="submit" value="{$lang->cmd_comment_registration}" accesskey="s" /></span>
</div>
</form>
<!--@end-->
..............................................
원문이있는 게시물 엑티브박스 애드온
http://www.zeroboard.com/17006894
댓글 3
-
만쓰별(정만)
2009.01.18 10:04
-
miso777
2009.01.19 00:06
지금 div 문구가 한두개가 아닌데 일일이 다 집어넣어서 테스트해보란 말씀인가요.? -
만쓰별(정만)
2009.01.18 10:05
내 아이콘 무슨 삼류같아;; 다시 만들어야짐;;
<!-- 글 내용 보여주기 -->
<div class="boardRead">
<div class="originalContent">
을 아래와 같이
<!-- 글 내용 보여주기 -->
<div id="님이 설정할 아이디" class="boardRead">
<div class="originalContent">
님이설정한 아이디를 애드온 설정에도 넣어주셔야 함;;
두개 문서 그냥 같이 처음 만나게 되는 div에 넣어보세요;;
쩝;;