Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XE-CORE develop] 레이아웃에서 사용자 정의 확장변수를 나눌경우. #542

Closed
bjrambo opened this issue Feb 28, 2014 · 3 comments
Assignees
Milestone

Comments

@bjrambo
Copy link
Contributor

bjrambo commented Feb 28, 2014

develop 브랜치 그대로 사용중입니다.

레이아웃에서 사용자 정의 확장변수를 나눌경우, 사용자 정의 부분의 나눠져있는 것들이 선택이 안됩니다.

자세한 사항은 스샷 참고 하세요.

sosifam1
sosifam2

해당 부분처럼 분류(?)를 선택햇음에도 불구하고 작동이 되지 않으며 이는 웹호스팅 받고 있는 cafe24서버 및 현재php5.4 에서 테스트 중인 제 서버상에서도 문제가 동일하게 일어나고 있습니다.

단, 마지막 릴리즈된 xe1.7.4 의 경우 문제가 되지 않습니다 :) 한번 확인해주세요~

@bjrambo
Copy link
Contributor Author

bjrambo commented Feb 28, 2014

#467 이 이유의 처리내용인
8d46449 이커밋이 문제가 되엇던 것 같습니다.

해당 커밋을 확인해보니깐. 마지막 div 부분을 다시 지워주니 정상적으로 작동하는 군요.

근데 너무 코드가 복잡하네요 레이아웃 인포 코드 부분을 보니깐.. 정리를 해보고 싶어도 정리가 잘 안되는 것 같습니다..

    <section class="section" cond="count($selected_layout->extra_var)">
        <h1>{$lang->extra_vars}</h1>
        {@$cnt = 1}
        <block loop="$selected_layout->extra_var => $name, $var">
            <block cond="$cnt == 1 && $var->group">
                <div class="x_tabbable">
                <ul class="x_nav x_nav-tabs">
            </block>
            <block cond="$group != $var->group">
                <li class="x_active"|cond="$cnt == 1"><a href="#extra_var{$cnt}" data-index="{$cnt}">{$var->group}</a></li>
                {@$group = $var->group}
                {@$cnt ++}
            </block>
        </block>
        </ul>

@bjrambo
Copy link
Contributor Author

bjrambo commented Feb 28, 2014

그리고 div를 저기서 닫히는건 오히려 아닌 것 같습니다.

해당 코드를 유심히 확인해보니 </section> 끝나는 시점의 바로 윗부분코드에<block cond="$group"></div></div></block> 가 있는걸 보니 문제가 없어보입니다.
대신
<block cond="$group"></div></block> 하나는 지워주는게 맞는것 같습니다 :)

@bjrambo
Copy link
Contributor Author

bjrambo commented Feb 28, 2014

해당 코드에 대한 내용 pull 보내드리도록 하겠습니다 :)

akasima added a commit that referenced this issue Feb 28, 2014
@akasima akasima closed this as completed Feb 28, 2014
@akasima akasima modified the milestone: 1.7.5 Feb 28, 2014
@akasima akasima self-assigned this Feb 28, 2014
@ghost ghost added the type/bug label Feb 28, 2014
@ghost ghost added this to the 1.7.5 milestone Feb 28, 2014
@ghost ghost removed the type/bug label Feb 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants