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

게시판 카테고리 노출 방식 제안 #953

Open
Kazto-lsk opened this issue Mar 14, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@Kazto-lsk
Copy link
Member

commented Mar 14, 2019

게시판의 category를 리스트화 시켜서

{!! uio('uiobject/board@select', [
            'name' => 'order_type',
            'label' => xe_trans('xe::order'),
            'value' => Request::get('order_type'),
            'items' => $handler->getOrders(),
        ]) !!}

이렇게 뽑아 올것이 아니라 {{ $instanceId->get('category') }} 형태처럼 li 형태로 뿌려주는 방법도 있으면 좋을것 같습니다.

아니면, 다른 방법이 있나요?
XE기본 템플릿에는 최 상단의 문법으로만 뽑아오고 있어서, 스킨 개발시에 어려운 점이 있습니다.

@bnu

This comment has been minimized.

Copy link
Member

commented May 17, 2019

UI Object를 이용하지 않고 다음과 같이 가능합니다.

$categoryItemId = Request::get('category_item_id');
@foreach ($categories as $item)
<li @if($categoryItemId === (string)$item['value']) class="on" @endif>
    <a href="#" data-value="{{ $item['value'] }}">{{ xe_trans($item['text']) }}</a>
</li>
@endforeach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.