묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
게시물에 대댓글달때 (comment_form에) 원글 제목 출력하기
2016.04.24 20:45
안녕하세요
대댓글 달때 새 페이지로 이동하는데 원글 제목이 안떠서 뜨게 하고 싶습니다..
제가 초보라 그냥 <h1>{$oDocument->getTitleText}</h1> 이렇게 쳐봤는데 아무것도 안뜨네요
혹시 알려주실 수 있으면 감사하겠습니다^^
<include target="_header.html" /> <div cond="$oSourceComment->isExists()" class="context_data"> <h1>{$oDocument->getTitleText}</h1> <h3 class="author"> <a cond="$oSourceComment->homepage" href="{$oSourceComment->homepage}">{$oSourceComment->getNickName()}</a> <strong cond="!$oSourceComment->homepage">{$oSourceComment->getNickName()}</strong> </h3> {$oSourceComment->getContent(false)} </div> <div class="feedback"> <form action="./" method="post" onsubmit="return procFilter(this, insert_comment)" class="write_comment"> <input type="hidden" name="mid" value="{$mid}" /> <input type="hidden" name="document_srl" value="{$oComment->get('document_srl')}" /> <input type="hidden" name="comment_srl" value="{$oComment->get('comment_srl')}" /> <input type="hidden" name="parent_srl" value="{$oComment->get('parent_srl')}" /> <input type="hidden" name="content" value="{htmlspecialchars($oComment->get('content'))}" /> {$oComment->getEditor()} <div class="write_author"> <span class="item" cond="!$is_logged"> <label for="userName" class="iLabel">{$lang->writer}</label> <input type="text" name="nick_name" id="userName" class="iText userName" value="{$oComment->getNickName()}" /> </span> <span class="item" cond="!$is_logged"> <label for="userPw" class="iLabel">{$lang->password}</label> <input type="password" name="password" id="userPw" class="iText userPw" /> </span> <span class="item" cond="!$is_logged"> <label for="homePage" class="iLabel">{$lang->homepage}</label> <input type="text" name="homepage" id="homePage" class="iText homePage" value="{htmlspecialchars($oComment->get('homepage'))}" /> </span> <input cond="$is_logged" type="checkbox" name="notify_message" value="Y" checked="checked"|cond="$oComment->get('notify_message')=='Y'" id="notify_message" class="iCheck" /> <label cond="$is_logged" for="notify_message">{$lang->notify}</label> <input cond="$module_info->secret=='Y'" type="checkbox" name="is_secret" value="Y" id="is_secret" checked="checked"|cond="$oComment->get('is_secret')=='Y'" class="iCheck" /> <label cond="$module_info->secret=='Y'" for="is_secret">{$lang->secret}</label> </div> <div style="float:right"> <button type="submit" class="btn_insert"><i class="xi-message"></i> {$lang->cmd_comment_registration}</button> </div> </form> </div> <include target="_footer.html" />
댓글 4
-
부산민지아빠
2016.04.24 20:54
-
mr33
2016.04.24 20:58
{$oDocument->getTitle} 라고 쳐봤는데 안되어서 {$oDocument->getTitleText}라고도 해본거고요..
초짜라 이것저것 될때까지 대입해보는데 안되네요 ㅠㅠ
-
sejin7940
2016.04.24 23:47
{$oDocument->getTitle()}
괄호가 빠지셨습니다. -
mr33
2016.04.25 09:55
감사합니다.. 그런데 괄호를 넣으면 아래와 같이 뜨네요.. 어떻게 하면 좋을까요??
Fatal error: Call to a member function getTitle() on a non-object in/home/koreanco/public_html/files/cache/template_compiled/ad17286ec9783d6fa64e2a903b0438c8.compiled.php on line 4
말씀하신..{$oDocument->getTitleText} 변수는 없는걸로 아는데..
{$oDocument->getTitle} 이라고 한번 해 보시겠어요?