웹마스터 팁
page_full_width">
act로 다른 페이지 보여주기
2018.07.25 03:29
샘플 :
https://eond.com/index.php?mid=eond_dentistry
https://eond.com/index.php?mid=eond_dentistry&act=about
https://eond.com/index.php?mid=eond_dentistry&act=s1
https://eond.com/index.php?mid=eond_dentistry&act=s2
하나의 레이아웃에서 act에 따라서 다른 페이지를 보여주는 코드입니다.
<!--@if($mid==='eond_dentistry' && !$act)--> <section class="visual_wrap"> <img src="img/main_vis.png" alt=""> </section> <!--@elseif($act == "about")--> <include target="inc/about.html" /> <!--@elseif($act == "s2")--> <include target="inc/s2.html" /> <!--@elseif($act == "s3")--> <include target="inc/s3.html" /> <!--@elseif($act == "s4")--> <include target="inc/s4.html" /> <!--@elseif($act == "s5")--> <include target="inc/s5.html" /> <!--@elseif($act == "s6")--> <include target="inc/s6.html" /> <!--@elseif($act == "s7")--> <include target="inc/s7.html" /> <!--@elseif($act == "s8")--> <include target="inc/s8.html" /> <!--@elseif($act == "s9")--> <include target="inc/s9.html" /> <!--@else--> {$content} <!--@end-->
출처 : https://eond.com/index.php?mid=xe_forum&page=1&document_srl=400603
허영호 치과 좌우측 스코롤 레이어가 잘려서나와요.