Extra Form
PHP PHP 7.4
CMS Rhymix 2.1

스케치북 게시판에서 list.html 파일에

<!--// 게시판 유형 -->
<!--@if($mi->default_style=='list')-->
<!--@if(!Mobile::isMobileCheckByAgent() || $mi->list_m)-->
<include target="_list_normal.html" />
<!--@else-->
<include target="_list_m.html" />
<!--@end-->
<!--@elseif($mi->default_style=='webzine')-->
<include target="_list_webzine.html" />
<!--@elseif($mi->default_style=='gallery')-->
<include target="_list_gallery.html" />
<!--@elseif($mi->default_style=='cloud_gall')-->
<include target="_list_cloud_gall.html" />
<!--@elseif($mi->default_style=='faq')-->
<include target="_list_faq.html" />
<!--@elseif($mi->default_style=='guest' && !$oDocument->isExists())-->
<include target="_list_guest.html" />
<!--@elseif($mi->default_style=='blog' && !$oDocument->isExists())-->
<block cond="$mi->rd_nav!='N'">{@ $mi->rd_nav=''}</block>
<block loop="$document_list=>$no,$oDocument">
<include target="_read.html" />
{@ $rd_idx=1}
</block>
<!--@else-->
<include target="_list_normal.html" />
<!--@end-->

 

이와 같은 형태로 게시판 유형에 따라 각각의 파일을 불러 오는데

<include target="_list_normal.html" /> 대신에 <include target="write_form.html" /> 을 바로 불러 오려고 합니다.

이럴경우 글쓰기 창은 보이는 데 $act=dispBoardWrite 값이 없다보니 글쓰기가 제대로 작동을 하지 않는데

페이지 리다이렉트 말고 따로 처리 할 수 있는 방법이 없을까요?

 

  • profile
    페이지 출력 시점 이후에 act를 바꿀 수는 없을 테니,
    말씀하신 것처럼 리디렉트하거나, 애드온 등을 통해 모듈 실행 이전 시점에 act값을 강제하는 방법이 가장 효율적일 것 같습니다.
    아니면 dispBoardWrite 함수가 동기화해주는 각종 변수와 필터 등을 list.html 파일 내에서 하나하나 세팅을 해줘야 할 것 같아요.
  • profile ?
    그냥 심플하게 리다이렉트 해야겠네요. ㅎㅎ