Skip to content
조회 수 2055 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

XE <title>제목 - 사이트명</title> 으로 변경방법



이게 제일 확실하다?

/html/xe/modules/board/board.view.php

173번째 줄의  Context::addBrowserTitle($oDocument->getTitleText());

이렇게 수정해 보세요 Context::setBrowserTitle($oDocument->getTitleText());




아래의 문서 안에,,, function addBrowserTitle($site_title) 함수를 찾아서 붉은색 부분을 수정해주세요.


./classes/context/Context.class.php


/**

* Add string to browser title

*

* @param string $site_title Browser title to be added

* @return void

*/

function addBrowserTitle($site_title)

{

if(!$site_title)

{

return;

}

is_a($this, 'Context') ? $self = $this : $self = self::getInstance();


if($self->site_title) 

{

// $self->site_title .= ' - ' . $site_title;

$self->site_title = $site_title.' - '.$self->site_title;

}

else

{

$self->site_title = $site_title;

}

}




./classes/context/Context.class.php 에 정의된 함수(메소드 어쨌든 ㅠㅠ)입니다. 아래 소개되는 함수는 모두 XpressEngine 내부 PHP 함수입니다.



Context::addBrowserTitle($site_title)

$site_title에는 문자열이 와야 합니다. 지정하면 기존에 지정되어 있던 제목이 있다면 기존의 제목 - 새로 입력한 문자열의 형태로 제목을 지정합니다. 지정된 제목이 없을 경우 입력한 문자열이 그대로 제목이 됩니다.

지정된 제목은 XE가 해당 페이지를 불러올 때 브라우저 제목이 됩니다.



Context::setBrowserTitle($site_title)

입력한 문자열 그대로 제목을 쓰고 싶은 경우(기존에 정해진 제목은 깡그리 무시하고!) Context::setBrowserTitle($site_title)을 사용해보세요. 사용법은 동일합니다.



Context::getBrowserTitle()

지금 현재 지정된 브라우저 제목 값을 가져오고 싶을 경우 Context::getBrowserTitle()를 이용해보세요. 지금 제목으로 설정된 문자열 값을 반환합니다.

로그인 후 댓글쓰기가 가능합니다.

?

  1. 17
    Apr 2016
    10:28

    XE 리퍼러 모듈로 트래픽 발생에 대처방법

    CategoryServer Views1409
    Read More
  2. 19
    Apr 2016
    19:49

    XE <title>제목 - 사이트명</title> 으로 변경방법

    CategoryServer Views2055
    Read More
  3. 19
    Apr 2016
    23:19

    XE Content font-size:수정방법

    CategoryServer Views1864
    Read More
  4. 30
    Apr 2016
    12:26

    서버 부하상태 체크

    CategoryServer Views1709
    Read More
  5. 24
    Jun 2016
    18:09

    스프레드 웹게시로 불러오기

    Category[Docs]스프레드시트 Views4725
    Read More
  6. 28
    Jun 2016
    00:37

    xe 타이틀 게시판 이름 없애기

    CategoryServer Views1803
    Read More
  7. 17
    Jul 2016
    13:00

    mysql 테이블 손상시 #1146 - Table 해결방법

    CategoryServer Views8905
    Read More
  8. 19
    Jul 2016
    19:29

    도스에서 텍스트 파일 치환

    CategoryWindowsTip Views4626
    Read More
  9. 26
    Jul 2016
    22:57

    mysql 16CPU / 16GB My.cnf

    CategoryServer Views2501
    Read More
  10. 06
    Aug 2016
    11:46

    구글 드라이브에서 다른 파일 데이터 참조하기

    Category[Docs]스프레드시트 Views6344
    Read More
  11. 06
    Aug 2016
    12:05

    Google SpeadSheet 조건에 맞는 데이터만 참조하여 가져오기(importrange, Query)

    Category[Docs]스프레드시트 Views12944
    Read More
  12. 08
    Aug 2016
    00:03

    스프레드시트 api append & update php 셀 내용 수정

    Category[Docs]스프레드시트 Views5314
    Read More
  13. 13
    Aug 2016
    08:26

    구글 스프레드시트 설문지 내맘대로 수정하기

    Category[Docs]스프레드시트 Views11635
    Read More
  14. 14
    Aug 2016
    08:07

    XE 반응형 모바일 메타태그 삽입하기

    CategoryServer Views3687
    Read More
  15. 14
    Aug 2016
    22:16

    MP3 소리 크기 조절 프로그램

    Category컴퓨터잡담 Views3645
    Read More
  16. 18
    Aug 2016
    07:13

    아파치 mod_cache mod_disk_cache 알아보기

    CategoryServer Views3096
    Read More
  17. 19
    Aug 2016
    15:10

    XE file cache 활용

    CategoryServer Views1648
    Read More
  18. 23
    Aug 2016
    20:54

    innodb_use_sys_malloc에 따라 The InnoDB memory heap is disabled mysql error 메시지

    CategoryServer Views3794
    Read More
  19. 24
    Aug 2016
    13:32

    innodb_use_sys_malloc to FALSE

    CategoryServer Views2637
    Read More
  20. 24
    Aug 2016
    15:41

    윈도우 CPU 사용률 확인, 실시간 저장하기

    CategoryWindowsTip Views5685
    Read More
Board Pagination Prev 1 ... 34 35 36 37 38 ... 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소