list.php를 수정해서 Category를 글목록에 표시되도록 추가했습니다.
이런식으로 카테고리란이 비정상적으로 길어서 줄이려고 하는데 어떻게 하면 될까요?
style.css를 뒤져봤지만
#kboard-default-list .kboard-list table td.kboard-list-uid { width: 72px; }
이런식으로 목록칸의 길이를 조절할 수 있는 코드 부분이 새로 추가한 Category 칸에 대해서는 나타나지 않아서
임의로 #kboard-default-list .kboard-list table td.kboard-list-category { width: 72px; } 이렇게 추가도 해봤지만 소용이 없었습니다.
그렇다면 아래처럼 하시면 될 듯합니다.
#kboard-default-list .kboard-list table td.kboard-list-cat { width: 72px; }
CSS 질문에 더 가까운 듯하군요^^
카테고리는 list.php에서 이런식으로 수정했습니다
<!-- 리스트 시작 -->
<div class="kboard-list">
<table>
<thead>
<tr>
<td class="kboard-list-uid"><?php echo __('Number', 'kboard')?></td>
<td class="kboard-list-title"><?php echo __('Title', 'kboard')?></td>
<td class="kboard-list-cat"><?php echo __('Category', 'kboard')?></td>
<td class="kboard-list-date"><?php echo __('Date', 'kboard')?></td>
<td class="kboard-list-view"><?php echo __('Views', 'kboard')?></td>
</tr>
</thead>
<tbody>
<?php while($content = $list->hasNextNotice()):?>
<tr class="kboard-list-notice">
<td class="kboard-list-uid"><?php echo __('Notice', 'kboard')?></td>
<td class="kboard-list-title">
<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
<div class="kboard-default-cut-strings">
<?php echo $content->title?>
<?php echo $content->getCommentsCount()?>
<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
<?php if($content->isNew()):?><span class="kboard-default-new-notify">New</span><?php endif?>
</div>
<div class="kboard-mobile-contents">
<span class="contents-item"><img src="<?php echo $skin_path?>/images/icon-user.png" alt="<?php echo __('Author', 'kboard')?>"> <?php echo $content->member_display?></span>
<span class="contents-item"><img src="<?php echo $skin_path?>/images/icon-date.png" alt="<?php echo __('Date', 'kboard')?>"> <?php echo date("Y.m.d", strtotime($content->date))?></span>
<span class="contents-item"><img src="<?php echo $skin_path?>/images/icon-view.png" alt="<?php echo __('Views', 'kboard')?>"> <?php echo $content->view?></span>
</div>
</a>
</td>
<td class="kboard-list-cat"><?php echo $content->category1?></td>
<td class="kboard-list-date"><?php echo date("Y.m.d", strtotime($content->date))?></td>
<td class="kboard-list-view"><?php echo $content->view?></td>
</tr>
<?php endwhile?>
<?php while($content = $list->hasNext()):?>
<tr>
<td class="kboard-list-uid"><?php echo $list->index()?></td>
<td class="kboard-list-title">
<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
<div class="kboard-default-cut-strings">
<?php echo $content->title?>
<?php echo $content->getCommentsCount()?>
<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
<?php if($content->isNew()):?><span class="kboard-default-new-notify">New</span><?php endif?>
</div>
<div class="kboard-mobile-contents">
<span class="contents-item"><img src="<?php echo $skin_path?>/images/icon-user.png" alt="<?php echo __('Author', 'kboard')?>"> <?php echo $content->member_display?></span>
<span class="contents-item"><img src="<?php echo $skin_path?>/images/icon-date.png" alt="<?php echo __('Date', 'kboard')?>"> <?php echo date("Y.m.d", strtotime($content->date))?></span>
<span class="contents-item"><img src="<?php echo $skin_path?>/images/icon-view.png" alt="<?php echo __('Views', 'kboard')?>"> <?php echo $content->view?></span>
</div>
</a>
</td>
<td class="kboard-list-cat"><?php echo $content->category1?></td>
<td class="kboard-list-date"><?php echo date("Y.m.d", strtotime($content->date))?></td>
<td class="kboard-list-view"><?php echo $content->view?></td>
</tr>
<?php $boardBuilder->builderReply($content->uid)?>
<?php endwhile?>
</tbody>
</table>
</div>
<!-- 리스트 끝 -->
도움 드리고 싶지만 스킨을 어떻게 수정하신건지 몰라서 답변이 어렵군요.
카테고리 td 태그에 kboard-list-category 클래스를 추가해주신건지요?
kboard-list-category 클래스를 추가해주셔야만 CSS 속성이 적용이 됩니다.
페이지 주소도 알려주세요^^