drupal에서 nexus 테마를 사용하고 있습니다. 7. Drupal 7의 기본 "Welcome to site"메시지를 제거하고 페이지, 기사 등을 만들지 않고 제거하고 싶습니다. 전면 페이지에서 차단하십시오. 좀 도와주세요 .. 감사 .. 당신의 template.php 파일에서Drupal 7의 기본 "Welcome to site"메시지를 제거하십시오.
3
A
답변
1
을 THEME_preprocess_page 기능이 코드를 추가
당신은 당신의 테마의 템플릿 파일에서이 작업을 수행 할 수 있습니다if ($variables['is_front']) {
$variables['title']="";
unset($variables['page']['content']['system_main']['default_message']);
}
3
:
function MYTHEME_preprocess_page(&$vars) {
if (drupal_is_front_page()) {
unset($vars['page']['content']['system_main']['default_message']); //will remove message "no front page content is created"
drupal_set_title(''); //removes welcome message (page title)
}
}
락 온 :
2
나를 위해 template.php에서 일했습니다 :
function nexus_preprocess_page(&$vars) {
if (drupal_is_front_page()) {
unset($vars['page']['content']['system_main']['default_message']); //will remove message "no front page content is created"
drupal_set_title(''); //removes welcome message (page title)
}
}
또한 I 라인 51-53에서 다음 제거했다 : 경우 ($ has_main_menu 또는 $ has_secondary_menu) {$ VARS [ 'classes_array'] [] = '와 네비게이션'; 그것은 나를 위해 작동
if (drupal_is_front_page()) {
drupal_set_title(''); //removes welcome message (page title)
: } template.php 파일에서
0
는 기능 evolve_preprocess_node (& $ 바르) 기능에이 코드를 추가했습니다.
관련 문제
- 1. drupal 7의 텍스트 영역에 기본 텍스트 추가
- 2. drupal 7의 23
- 3. "Welcome to Play 2.0"페이지 생성 이해하기
- 4. Drupal 7의 다른 템플릿
- 5. Drupal 7의 사용자를 추천하십시오.
- 6. Drupal 7의 테마는 무엇입니까?
- 7. Drupal 7의 필드 정렬
- 8. FBPermissionDialog 버그, "Welcome to Facebook"페이지 표시
- 9. 모든 페이지에 'Welcome to nginx!'가 표시됩니다.
- 10. "Welcome to Mail"호출 방법 프로그래밍 방식으로보기?
- 11. drupal 기본 페이지 연결하기
- 12. Drupal Css를 제거하십시오
- 13. Drupal 7의 컨텐츠 유형 필드 목록
- 14. Drupal 7의 기능 모듈과 블록
- 15. Drupal 7의 블록 액세스 오류.
- 16. Drupal 7의 머리글 스타일 변경
- 17. 드루팔 (Drupal 7의 JS 경고)
- 18. drupal 7의 theme_form 덮어 쓰기
- 19. Drupal 7의 축소 형 설명
- 20. drupal-7의 배경 이미지 유형
- 21. 드루팔 (Drupal 7의 유료 회원)
- 22. Drupal 7의 다 대다 참조
- 23. Drupal 7의 파일 사용 권한 관련 문제
- 24. Elgg 1.8과 Drupal 7의 매끄러운 회원 통합
- 25. 드루팔 (Drupal 7의 랜딩 페이지 생성)
- 26. 드루팔 (Drupal 7의 2 열 컨텐츠
- 27. IIS 7의 기본 ASP
- 28. 드루팔 (Drupal 7의 고객 관리 페이지
- 29. Drupal 7의 업로드 필드에 유효한 확장자
- 30. Drupal 7의 내용 유형 변경으로 노드 업데이트하기