테스트 사이트 - 개발 중인 베타 버전입니다

내용관리에서 php나 js 사용은 안될까요??? 채택완료

이두박근 11년 전 조회 11,569
이번업데이트로 매뉴에서 내용페이지 추가가 쉬워져서 

cms처럼 그누보드를 쓰려고 합니다.


내용페이지를 다이나믹하게  만들고 싶습니다. 

그래서 php 코드를 삽입해서 붙여넣었더니 
코드가 그대로 나오네요.

내용관리에서 php나 js 사용은 안될까요??
댓글을 작성하려면 로그인이 필요합니다.

답변 3개

채택된 답변
+20 포인트
11년 전
끙끙대다 혼자 해결했습니다.
돌아보면 어려운건 아니지만 원본을 건들였기에 기록을 남겨둡니다.

g5-5.0b27 기준 /bbs/content.php 74줄
</strong><strong style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 21.600000381469727px">
<div style="display: inline !important">    </div></strong></div>
<div><strong style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 21.600000381469727px">
<div style="display: inline !important"><div id="ctt_con"></div></strong><strong style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 21.600000381469727px">
<div><span class="Apple-tab-span" style="white-space: pre">	</span><?php</div>
<div><strong><span class="Apple-tab-span" style="white-space: pre">	</span>   //14-03-24  </strong><strong>기존은 html밖에 쓸 수 없다.</strong></div>
<div><strong>
<div style="display: inline !important"><strong><span class="Apple-tab-span" style="white-space: pre">	</span>   //내용관리의 내용필드에 직접 만든 php의 주소를 걸어서 인클루드 시킨다. </strong></div></strong></div></strong>
<div><strong style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 21.600000381469727px"><span class="Apple-tab-span" style="white-space: pre">	</span>   //</strong><strong style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 21.600000381469727px">따로 폴더 구성후 파일을 올린다. 원문: </strong><strong style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 21.600000381469727px">echo $str;</strong></div><strong style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 21.600000381469727px">
<div><span class="Apple-tab-span" style="white-space: pre">	</span>@include_once($co['co_content']);</div>
<div><span class="Apple-tab-span" style="white-space: pre">	</span>?></div></strong><strong style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 21.600000381469727px">
<div style="display: inline !important"></div></div></strong></div>
<div><strong style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 21.600000381469727px">

설정후 내용에 경로를 지정합니다.
저는 그누보드를 홈에 설치했고 내용페이지들은 page 폴더를 생성후 따로 모았습니다.
내용에 경로를 ../page/muscle.php 라고 넣어주되 필히 소스 모드에서 넣으세요.
수정할 때마다 div에 감싸집니다. 꼭 소스모드에서 다시 복사해주셔야 합니다. 해보면 느낌와요.
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

10년 전

이제는 내용관리도 스킨이 생겼기에 원본 건들이지 않고 스킨에서 정리하면 됩니다.

버전 5.1.2 기준 /skin/content/basic/content.skin.php 14줄

 

</span> </p><p style="font-size: 14.6667px;">    <div id="ctt_con"></p><p style="font-size: 14.6667px;">        <?php </p><p style="font-size: 14.6667px;"><span style="font-size: 14.6667px; line-height: 1.5;">       </span><span style="font-size: 14.6667px; line-height: 1.5;"> </span><span style="color: rgb(0, 130, 0); font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14.004px; letter-spacing: -0.01px; line-height: 25.2072px; background-color: rgb(255, 255, 255);">//내용관리의 내용필드에 직접 만든 php의 주소를 걸어서 인클루드 시킨다.</span> </p><p style="font-size: 14.6667px;"><span style="font-size: 14.6667px; line-height: 1.5;">       </span><span style="font-size: 14.6667px; line-height: 1.5;"> </span>@include_once($co['co_content']); </p><p style="font-size: 14.6667px;"><span style="font-size: 14.6667px; line-height: 1.5;">       </span><span style="font-size: 14.6667px; line-height: 1.5;"> </span>?></p><p style="font-size: 14.6667px;">    </div></p><p style="font-size: 14.6667px;">

 

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

11년 전
기존 내용도 모두 이런식으로 써야합니다..
극단적인 방법이네요ㅠ
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인