2012-11-27 3 views
-2

나는 drupal을 처음 사용하고 있습니다. 새로운 Drupal 테마를 만들었습니다. 내 테마는 Drupal 페이지에 영향을주었습니다. 콘텐츠 추가 페이지를 클릭하면 콘텐츠 페이지가 포맷되지 않습니다. 내 새로운 테마에 콘텐츠를 추가 할 수 없습니다. 여기 페이지 붙여 넣기 - front.tpl.php 파일이 있습니다.Drupal 새로운 테마 생성

<div id="wrapper"> 
       <header id="header"> 
       <div class="section clearfix"> 
       <div class="logo_left"> 
        <?php if ($logo): ?> 
         <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo"> 
          <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" /> 
         </a> 
        <?php endif; ?> 
       </div> 
       <nav class="logo_right"><?php print render($page['header']);?></nav> 

       </div></header> <!-- /.section, /#header --> 

       <div id="menu"> 
        <!--ul> 
         <li><a href="#">About</a></li> 
         <li><a href="#">Service</a></li> 
         <li><a href="#">Client</a></li> 
         <li><a href="#">Contact</a></li> 
        </ul--> 

        <?php print render($page['header_menus']); ?> 

       </div> 

        <div id="content"> 
          <div id="leftcontent"> 
            <div id="flash"> 

            </div> 
        <div id="leftcontent1" > 
          <div class="rightcontentheader"> <h2>CLIENT REPORTING</h2></div> 
         <?php print render($page['block_one']); ?>  
        </div> 
        <div id="leftcontent2"> 
        <div class="rightcontentheader"> <h2>AUTOMATED MARKETING</h2></div> 
         <?php print render($page['block_two']); ?>  
        </div> 



          </div> 





          <div id="rightcontent"> 
             <div id="rightconent1"> 
              <div class="rightcontentheader"> <h2>REAL ROI IMPACT</h2></div> 
               <?php print render($page['galery_right']); ?>  
             </div> 
            <div id="rightconent2"> 
              <div class="rightcontentheader"><h2>LATEST NEWS</h2></div> 
               <?php print render($page['block_three']); ?>   

            </div> 
          </div> 
        </div> 
    <div id="footer"> 
    </div> 
    </div> 

+0

귀하의 회신을 테마 디렉토리 안에 –

답변

0

당신은 page.tpl.php라는 페이지 템플릿 파일이 필요합니다. 여기에 레이아웃을 정의 할 수 있습니다. 해당 파일을 찾을 수 없으면 drupal은 기본 테마로 되돌아갑니다. (형식이 지정되지 않았지만 모든 내용 포함).

drupal site에서이 기본값 page.tpl.php 파일을 찾을 수 있습니다. 모든 PHP 변수를 그대로두고 편집을 시작하는 것이 좋습니다. 변수를 제거하면 페이지의 일부가로드되지 않습니다.

UPDATE 죄송합니다 링크는 드루팔 5, 아마 당신은 더 제공 템플릿 중 하나의 파일을 사용할 수 있습니다.

업데이트 2 업데이트 당신이 바로

친절
+0

덕분에 존재하는 모든 파일을 나열 코멘트 위의 "소스보기"버튼을 클릭해야합니다 드루팔 7에 대한 링크 .pot - front.tpl.php를 만들었지 만 같은 문제가 발생합니다. 확인해 주시겠습니까? – sakthidasan

+0

거기에 실제로 스타일 시트를 포함하고있는 html.tpl.php가 있습니까? 테마 폴더에 CSS 파일이 있고 theme.info 파일에 있습니까? 그것들은 제가 생각할 수있는 마지막 것입니다. – Neograph734

+0

답장을 보내 주셔서 감사합니다. html.tpl.php에 내 css 파일이 포함되어 있으며 .info 파일에도 CSS 파일이 포함되어 있지만 새 테마를 만들 때 콘텐츠를 추가 할 수 없습니다. – sakthidasan