2013-01-19 6 views
0

Bartik을 수정하여 사용자 지정 테마를 만듭니다. 내가 읽은 모든 것에서 나는 일을 올바르게하고 있지만 여전히 효과가 없습니다. 나는 백만 번 내 캐시를 삭제하고 여전히 이러한 오류를 얻을했습니다새로운 지역 만들기 - 드루팔 (Drupal 7)에 기쁨이 없습니다.

공지 사항 : 정의되지 않은 인덱스 : department_column_left를() (선 포함에 /사용자/스캇/사이트/HardwareNext/사이트의 191 /모든/themes/hn01/templates/page.tpl.php). 주의 : 정의되지 않은 인덱스 : 등의 department_content() (라인 /Users/scott/Sites/HardwareNext/sites/all/themes/hn01/templates/page.tpl.php 197). 주의 : 정의되지 않은 인덱스 : 등의 department_footer() (라인 /Users/scott/Sites/HardwareNext/sites/all/themes/hn01/templates/page.tpl.php 203).

어떤 도움을 크게 감상 할 수있다!

다음은 hn01.info 파일입니다 :

name = hn01 
description = HN - Template 01 
package = Core 
version = VERSION 
core = 7.x 

stylesheets[all][] = css/layout.css 
stylesheets[all][] = css/style.css 
stylesheets[all][] = css/colors.css 
stylesheets[print][] = css/print.css 

regions[header] = Header 
regions[help] = Help 
regions[page_top] = Page top 
regions[page_bottom] = Page bottom 

regions[featured] = Featured 
regions[content] = Content 
regions[sidebar_first] = Sidebar first 

regions[department_column_left] = Department column left 
regions[department_content] = Department content 
regions[department_footer] = Department footer 

regions[footer_firstcolumn] = Footer first column 
regions[footer_secondcolumn] = Footer second column 
regions[footer_thirdcolumn] = Footer third column 
regions[footer_fourthcolumn] = Footer fourth column 
regions[footer] = Footer 

settings[shortcut_module_link] = 0 


; Information added by drupal.org packaging script on 2012-11-07 
version = "7.17" 
project = "drupal" 
datestamp = "1352325357" 

... 그리고 여기에 page.tpl.php 파일에서 관련 코드입니다 :

<?php if ($page['department_column_left']): ?> 
    <div id="department-column-left" class="department-column-left"><div class="section"> 
    <?php print render($page['department_column_left']); ?> 
    </div></div> <!-- /.section, /#department-column-left --> 
<?php endif; ?> 

<?php if ($page['department_content']): ?> 
    <div id="department-content" class="department-content"><div class="section"> 
    <?php print render($page['department_content']); ?> 
    </div></div> <!-- /.section, /#department-content --> 
<?php endif; ?> 

<?php if ($page['department_footer']): ?> 
    <div id="department-footer" class="department-footer"><div class="section"> 
    <?php print render($page['department_footer']); ?> 
    </div></div> <!-- /.section, /#department-footer --> 
<?php endif; ?> 

내가 분명히 할 수있는 것이 있으면 알려줘. 나는 영역을 추가하면 .INFO 파일에 추가 한 다음 page.tpl.php 파일을 수정 한 쉽게 생각했다. 더 있나요? adavnce에서

감사합니다,

스콧.

+0

테마 폴더에있는 모든 파일이 무엇인지 알려 주실 수 있습니까? 파일 및 폴더의 이름 –

+0

여기에 전체 page.tpl.php를 붙여 넣으십시오. – RajeevK

답변

0

괜찮 았어.

내가 말했던 것처럼 캐시를 여러 번 지운 후에 브라우저를 닫은 다음 다시 열었습니다. 그것은 문제를 해결하지 못했습니다. 내가 여기에 '흐름에 대답을 기다리는 동안

그래서, 나는 관리자 메뉴에서 정보를 탐색하기 시작했다. "구성"을 가서 이미지 스타일을 쥐게하고 나는 그것을 업데이트 후 ... 단순히 위의

오류 멀리 갔다.

내 새로운 지역이 있고 사용할 수 있습니다. 나는 나쁜 영향없이 아침마다 그들을 사용하고 있습니다. 그래서 당신이 내 문제에 직면했다면 - 그 닭고기를 드루팔 (Drupal의 신들)에게 희생하기 전에 - 블록에 들어가서 무엇인가를 바꾸어 저장하십시오. 그냥 피 묻은 닭고기에서 키보드를 저장할 수 있습니다.