최신글 두개 이상 불러오려고합니다ㅠㅜ

최신글 두개 이상 불러오려고합니다ㅠㅜ

QA

최신글 두개 이상 불러오려고합니다ㅠㅜ

본문

최신글을 각 게시판에서 한개씩 불러오는 구조인데요.

복사 붙여넣으면 더 불러와질 줄 알았는데
복사해서 붙혀넣으니 그냥 같은 게시글이 두번 붙혀지네요ㅠㅠ
한 번 보시고 조언주시면 감사하겠습니다 ㅠㅠ

<!-- #BEGIN More Info -->
<div class="more">
<?php if($this->newsCompany != null):?>
<div class="index-item item-template">
<div class="index-item-content">
<div class="display-100">
<div class="display-center">
<img src="<?=PATH.'/public/data/news/'.$this->newsCompany->thumbnail?>" alt="<?=$this->company->title?>" />
</div>
</div>
</div>
</div>
<div class="index-item item-company">
<div class="index-item-content">
<div class="display-100">
<div class="display-center">
<div class="more-item-content">
<h2><?=$this->company->title?></h2>
<h3 style="font-weight:700"><?=Libs_String::cutText($this->newsCompany->title,20,1)?></h3>
<p id="summary-column"><?=Libs_String::cutText($this->newsCompany->summary,70,1)?></p>
<div class="buttons-more">
<!-- <?php //if($this->newsCompany->_blank ==1){echo 'target="_blank"';}?> -->
<a id="btn-mores" class="button button-more" href="<?php if(stripos($this->newsCompany->alias,'http://') !==false){echo $this->newsCompany->alias;}else{echo PATH.'/'.$this->newsCompany->alias.'.html';}?>">
<span class="hover"></span>
<span class="active">More</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<?php endif?>
<?php if($this->newsIndustry != null):?>
<div class="index-item item-oto">
<div class="index-item-content">
<div class="display-100">
<div class="display-center">
<img src="<?=PATH.'/public/data/news/'.$this->newsIndustry->thumbnail?>" alt="<?=$this->industry->title?>" />
</div>
</div>
</div>
</div>
<div class="index-item item-column">
<div class="index-item-content">
<div class="display-100">
<div class="display-center">
<div class="more-item-content">
<h2><?=$this->industry->title?></h2>
<h3 style="font-weight:700"><?=Libs_String::cutText($this->newsIndustry->title,20,1)?></h3>
<p id="summary-company"><?=Libs_String::cutText($this->newsIndustry->summary,70,1)?></p>
<div class="buttons-more">
<!-- <?php //if($this->newsIndustry->_blank ==1){echo 'target="_blank"';}?> -->
<a class="button button-more" href="<?php if(stripos($this->newsIndustry->alias,'http://') !==false){echo $this->newsIndustry->alias;}else{echo PATH.'/'.$this->newsIndustry->alias.'.html';}?>">
<span class="hover"></span>
<span class="active">More</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<?php endif?>
</div>

<!-- #END More Info --> 

이 질문에 댓글 쓰기 :

답변 2

newsCompany  해당 class를 찾아서 수정하셔야겠네요

일단 소스가 그누보드는 아닌거 같네요..

$this->newsCompany 

여기 위에서 아마 클레스 선언이 있을거구요

 

그 선언된 클레스에서 

newsCompany 

해당 펑션에서 불러오는 게시물의 수가 지정이 되어있을겁니다..

해당 소스를 개발한 개발사나 업체에 문의 하시는게 빠를듯 하네요

답변을 작성하시기 전에 로그인 해주세요.
전체 2
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT