#115. 블로그 모듈에서 퍼머넌트링크 접속시 해당 글만 보여주도록 수정.

기본 블로그 레이아웃의 글 제목에 링크 부여.



git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2404 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-24 01:38:20 +00:00
parent a290ac4800
commit 29dfac2663
5 changed files with 11 additions and 8 deletions

View file

@ -92,6 +92,7 @@
unset($document_srl);
Context::set('document_srl','',true);
} else {
// 브라우저 타이틀 설정
Context::setBrowserTitle($oDocument->getTitleText());
@ -100,6 +101,12 @@
// 조회수 증가
$oDocument->updateReadedCount();
// 목록수를 1개로 수정 (글이 선택되었을 때만)
$this->list_count = 1;
// 페이지 변수를 제거하여 직접 구하도록 변경
unset($page);
}
}

View file

@ -135,6 +135,7 @@ Jeong, Chan Myeong 070601~070630
.blogRead .originalContent { padding:2em 0 2em 0;}
.blogRead .titleAndCategory { float:left;}
.blogRead .titleAndCategory h4 { font-size:1.4em; display:inline; padding-left:.2em;}
.blogRead .titleAndCategory h4 a { color:#333333; }
.blogRead .titleAndCategory .vr { font-size:.9em; margin:0 .3em; color:#c5c7c0;}
.blogRead .titleAndCategory .category { font-size:.9em; color:#999999; white-space:nowrap;}

View file

@ -1,17 +1,11 @@
<!--%import("filter/vote.xml")-->
<!-- 현 글의 기본 정보를 담고 있는 form. 필수 -->
<form id="fo_document_info" action="./" method="get">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="document_srl" value="{$oDocument->document_srl}" />
</form>
<!-- 글 내용 보여주기 -->
<div class="blogRead">
<div class="originalContent">
<div class="readHeader">
<div class="titleAndCategory">
<h4>{$oDocument->getTitleText()}</h4>
<h4><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getTitleText()}</a></h4>
<span class="vr">|</span><span class="category">{$category_list[$oDocument->get('category_srl')]->title}</span>
</div>

View file

@ -140,6 +140,7 @@ Jeong, Chan Myeong 070601~070630
.blogRead .titleAndCategory { float:left;}
.blogRead .titleAndCategory h4 { font-size:1.4em; display:inline; padding-left:.2em;}
.blogRead .titleAndCategory h4 a { color:#000000; }
.blogRead .titleAndCategory .vr { font-size:.9em; margin:0 .3em; color:#c5c7c0;}
.blogRead .titleAndCategory .cotegory { font-size:.9em; color:#999999; white-space:nowrap;}

View file

@ -3,7 +3,7 @@
<div class="originalContent">
<div class="readHeader">
<div class="titleAndCategory">
<h4>{$oDocument->getTitleText()}</h4>
<h4><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getTitleText()}</a></h4>
<!--@if($oDocument->get('category_srl'))-->
<span class="vr">|</span><span class="category">{$category_list[$oDocument->get('category_srl')]->title}</span>
<!--@end-->