웹마스터 팁
content 위젯에서 태그로 글 뽑기
2021.02.07 01:16
제 필요 때문에 간단히 수정했는데 나중에 다시 찾으려면 번거로울 듯 해서 남겨놓습니다.
content/content.class.php
function _getDocumentItems($args)
{
// Get model object from the document module
$oDocumentModel = getModel('document');
// Get categories
$obj = new stdClass();
$obj->module_srl = $args->module_srl;
$obj->document_tag = $args->document_tag; <-추가
{
// Get model object from the document module
$oDocumentModel = getModel('document');
// Get categories
$obj = new stdClass();
$obj->module_srl = $args->module_srl;
$obj->document_tag = $args->document_tag; <-추가
cont/info.xml
아무곳에나 추가(121줄 즈음)
<var id="document_tag">
<type>text</type>
<name xml:lang="ko">태그</name>
</var>
<type>text</type>
<name xml:lang="ko">태그</name>
</var>
queries/getNewestDocuments.xml
<conditions> </conditions> 사이에 추가
<condition operation="equal" column="tags" var="document_tag" pipe="and" />