#471 rss출력시 Context::transContent()를 거치도록 하고 이미지갤러리/인용구의 결과물 방식에 따른 결과물 형태를 다르게 하는 코드를 삽입

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4265 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-06-10 04:14:52 +00:00
parent f6537987f5
commit 5260252282
4 changed files with 29 additions and 4 deletions

View file

@ -126,11 +126,21 @@
// 결과 출력을 XMLRPC로 강제 지정
Context::setResponseMethod("XMLRPC");
// 템플릿 파일 지정
$this->setTemplatePath($this->module_path.'tpl/');
// 결과물을 얻어와서 에디터 컴포넌트등의 전처리 기능을 수행시킴
$path = $this->module_path.'tpl/';
if($args->start_date || $args->end_date) $file = 'xe_rss';
else $file = 'rss20';
if($args->start_date || $args->end_date) $this->setTemplateFile('xe_rss');
else $this->setTemplateFile('rss20');
$oTemplate = new TemplateHandler();
$oContext = &Context::getInstance();
$content = $oTemplate->compile($path, $file);
$content = $oContext->transContent($content);
Context::set('content', $content);
// 템플릿 파일 지정
$this->setTemplatePath($path);
$this->setTemplateFile('display');
}
/**

View file

@ -0,0 +1 @@
{$content}