최신글 두개 이상 불러오려고합니다ㅠㅜ
본문
최신글을 각 게시판에서 한개씩 불러오는 구조인데요.
복사 붙여넣으면 더 불러와질 줄 알았는데
복사해서 붙혀넣으니 그냥 같은 게시글이 두번 붙혀지네요ㅠㅠ
한 번 보시고 조언주시면 감사하겠습니다 ㅠㅠ
<!-- #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
해당 펑션에서 불러오는 게시물의 수가 지정이 되어있을겁니다..
해당 소스를 개발한 개발사나 업체에 문의 하시는게 빠를듯 하네요
답변을 작성하시기 전에 로그인 해주세요.