Rhymix 2.1.21 업데이트 후부터 contentextended 위젯 랜덤 기능이 안됩니다 궁뎅이 2025.03.30 12:19 178 1 4 CMS/프레임워크 Rhymix 2.1 개발 언어 PHP 7.3 Rhymix 2.1.21 업데이트 후 부터 contentextended 위젯 랜덤 기능이 안됩니다. 어디를 어떻게 수정해야 가능 할지요? 궁뎅이 Lv. 4
Q&A 라이믹스 사이트를 여러 개 운영 하지만 제목과 부제목만 변경 후에는 반영이 안됩니다. 사이트 전체를 바꾸면 반영이 되지만 seo 키워드 설명 그리고 사이트 제목 부제목 이렇게 4개만 변경하면 네이버에 반영이 안됩니다. 자리관 3시간 전 0 0
댓글 4
업데이트로 랜덤 관련 제한 걸린것때문일거예요
1) contentextended.class.php 에서
$output = executeQueryArray('widgets.contentextended.getNewestDocuments', $obj);
부분 대신에
if($obj->sort_index=='rand()') {
$output = executeQueryArray('widgets.contentextended.getNewestDocumentsRandom', $obj);
}
else {
$output = executeQueryArray('widgets.contentextended.getNewestDocuments', $obj);
}
2) queries/getNewestDocumentsRandom.xml 추가
<query id="getNewestDocumentsRandom" action="select">
<tables>
<table name="documents" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="notin" column="documents.module_srl" default="0" pipe="and" />
<condition operation="in" column="documents.module_srl" var="module_srl" filter="number" notnull="notnull" pipe="and" />
<condition operation="in" column="documents.category_srl" var="category_srl" pipe="and" />
<condition operation="equal" column="documents.is_notice" var="is_notice" pipe="and" />
<group pipe="and">
<condition operation="more" column="documents.last_update" var="duration_article" pipe="and" />
</group>
</conditions>
<navigation>
<index default="rand()" />
<list_count var="list_count" default="50" />
<page_count var="page_count" default="10" />
<page var="page" default="1" />
</navigation>
</query>
세진님 안녕하세요 ~^^ 항상 감사합니다 ~
궁뎅이님 글 덕분에 해결하게 되었어요. 감사합니다.
세진님 감사합니다. 업데이트 당시 안되어서 보류해놨었는데 이 내용 적용하니 해결하였습니다.