안녕하세요?
늘 도움을 받고 있는 안드레아 입니다.
아래와 같은 저희 성당 공지사항 게시판 게시글 옆에,
[긴급공지], [사목지침]... 이러한 표시를 아래 게시판 스킨 적용처럼 아이콘으로 표시 하려는데 잘 되질 않네요.
스킨 적용 파일은 아래 처럼 하였습니다.
web_font도 아래와 같이 했습니다.
게시판 설정도 아래와 같이 하구 있구요.
위와 같이 하고 난 후에는 어디를 조정해야 되는지 그 다음을 모르겠네요.
도움을 부탁드립니다.
해당 URL | http://dgcath.or.kr |
---|---|
진행사항 | 해결 |
댓글 27
-
위의 설정으로는 님이 분류할려는 기능은 조금 어려울 것 같네요.([긴급공지], [사목지침]...)
• 다른 방법으로 "확장변수 색상입히기" 기능을 이용하여, 확장변수를 "제목"앞에 두는 방법이 적절할 것 같네요.
1. "게시판설정" > "확장변수"를 하나 만드시고 "형식"을 "단일 선택(radio)"으로 만들고,
"기본값"을 적절히 주시면 됩니다. (예: 긴급공지, 사목지침,등)
2. > "스킨설정" > "확장변수 설정" > ""에 해당 게시판mid를 작성하시고, 색상에 맞게 항목지정
3. >"게시판 정보" > "목록설정" 에서 해당 확장변수를 "제목"앞에 두시면 됩니다.
참고로 색상변경은 /modules/board/skins/sketchbook5_MH/css/board.css 제일 하단에
/* 확장변수 칼라 */ 아래 코드을 수정하시면 됩니다.
-
이번 팁은 새로운 코드를 삽입하는 방법입니다.
1. /modules/board/skins/sketchbook5_MH/_list_normal.html 파일의 104번쩨 줄 부터 아래와 같이 수정합니다.
<!--@if($grant->view)-->
<!--// 제목앞에 분류 아이콘 출력 -->
<!--@if($document->getExtraEidValueHTML('select') == '미사일정')-->
<span class="sbtn_mini sbtn-blue" style="margin-right:10px">미사일정</span>
<!--@end-->
<!--@if($document->getExtraEidValueHTML('select') == '긴급공지')-->
<span class="sbtn_mini sbtn-red" style="margin-right:10px">긴급공지</span>
<!--@end-->
<!--@if($document->getExtraEidValueHTML('select') == '사목지침')-->
<span class="sbtn_mini sbtn-gray" style="margin-right:10px">사목지침</span>
<!--@end--><!--// 제목 -->
2. 게시판설정 > 확장변수로 ID "select"로 하나 만드시고 "형식"을 "단일 선택(radio)"으로 만들고,
"기본값"을 "미사일정,긴급공지,사목지침"로 작성합니다.(필요에 따라 수정)
3. 글 작성시 해당 항목을 선택하시면 됩니다.
4. 게시글이 아래와 같이 출력됩니다.
5. 버턴의 색상은 sbtn-blue,red,gray 빨간색 부분을 수정하시면 됩니다.
참조색상 https://moonhouse.co.kr/xemy/395931
p.s 위의 팁 적용한 버전입니다.
https://moonhouse.co.kr/xemy/530374
-
아... 쪽지로 질문을 드렸는데, 게시판을 활용하시라는 말씀을 깜빡하고 다시 질문 드립니다.
/modules/board/skins/sketchbook5_MH/_list_normal.html 파일의 104번쩨 줄 수정 후 아래와 같이 적용했습니다.
"구분"의 텍스트만 나오고 버턴으로는 나오지 않네요. 제가 뭘 빼먹었는지요?
-
이것 저것 다시 하다보니, 새로운 사실을 알아냈네요.
아래 이미지 처럼 게시물 작성할 때 "공지" 체크를 안하면 옆에 버턴이 정상으로 나오는데,
"공지"체크를 하면 버턴이 나오지 않는 걸 발견했습니다.
이건 어떻게 해결하면 되는지요?
그리고, 최근에 구입한 멀티 위젯을 활용해서 첫 화면의 게시판 위젯 화면에도 버튼들이 나오게 하려는데, 잘 되질 않네요.
너무 모르는게 투성이라, 송구하고 또 송구합니다.
-
공지사항에 까지 출력되게 할려면 공지항목에도 코드를 추가해야 합니다.
/modules/board/skins/sketchbook5_MH/_list_normal.html 46줄 <td class="title"> 아래 코드를 한번 더 삽입하세요.
<td class="title">
<!--// 제목앞에 분류 아이콘 출력 -->
<!--@if($document->getExtraEidValueHTML('select') == '미사일정')-->
<span class="sbtn_mini sbtn-blue" style="margin-right:10px">미사일정</span>
<!--@end-->
<!--@if($document->getExtraEidValueHTML('select') == '긴급공지')-->
<span class="sbtn_mini sbtn-red" style="margin-right:10px">긴급공지</span>
<!--@end-->
<!--@if($document->getExtraEidValueHTML('select') == '사목지침')-->
<span class="sbtn_mini sbtn-gray" style="margin-right:10px">사목지침</span>
<!--@end-->https://moonhouse.co.kr/xemy/530374
그리고 mh_multi 위젯에 출력되게 할려면 제가 버전업 시킨 위젯을 받아서 설치하고 설정을 하시면 됩니다.
https://moonhouse.co.kr/m_board/543913
-
가르쳐 주신대로 하니까, 공지에도 아이콘이 출력되는 군요. 감사합니다. 그런데,
https://moonhouse.co.kr/m_board/543913 의 버전은 라이믹스 전용이라고 되어 있는데, 저는 XE를 사용하고 있습니다. 적용하기 전에 혹시 문제가 있을까봐 여쭤보고 설치하려 합니다.
-
게시판스킨만 라이믹스전용이고 mh_multi 위젯은 XE에서도 잘 작동 할 것입니다.
-
가르쳐주신대로 따라 하니까 점점 틀이 잡혀가기 시작합니다. 고맙습니다.
"공지" 표시도 아이콘 형태로 나오는데, 이게 더 좋아보이네요.
그런데,
mh_multi 위젯 V1.3을 덮어 씌웠는데, 아래처럼 위젯 목록도 나오지 않고,
"페이지수정"에서 "설정"을 누르면 "코드생성" 창에서 스킨 목록이 하나도 뜨질 않습니다.
모르는게 너무 많아서 죄송합니다.ㅠㅠ
-
파일에 문제가 있었네요
다시 받아서 해 보세요. 죄송~
-
팔공산님께서 수정하신 파일로 다시 해봤는데, 이번에는 아이콘 형식으로 나오지 않고 텍스트만 나오네요.
다른 설정을 해야하는지요?
그리고, 제목 밑줄 나오는 건 저번 처럼
/widgets/mh_multi/skins/mh_sketchbook5_list/css/normal.css 에
.mhbox_skl a { text-decoration:none } 추가하면 되는 거지요?
-
밑줄 해제는 저번 처럼 하시면 되고요,
아님 해당 레이아웃의 css에서 text-decoration: 을 찾아서 지우고
a { text-decoration:none } 이렇게 추가해 주세요.
아이콘형식은 웹폰트 애드온에서 섹시버턴 설정을 공지사항에만 체크를 하셔서 그래요
전체 선택을 하시던 아님 메인페이지(home)에도 체크를 하세요.
-
팔공산님 덕택에 모든 걸 잘 해결 했습니다.
친절하고 신속한 답변에 다시 한 번 감사드립니다.
혹시라도 제주도에 놀러 오시면 식사라도 대접해 드릴께요^^
밑줄 해제는 해당 레이아웃의 css에서 text-decoration: 을 찾아서 지우고 수정하라 하셨는데,
어디인지 알 수가 없어서 예전에 가르쳐 주신 방법을 썼습니다.
해당 레이아웃 수정 방법은 참고로 가르쳐 주시면 학습하겠습니다.
레이아웃은 XE에서 제공하는 기본레이아웃을 사용하고 있습니다.
아! 그리고, 멀티위젯에는 제목 옆 버튼을 10개까지 지정할 수 있는데,
Sketchboook5 MH 게시판 스킨에는 3개 밖에 없던데, 늘릴 수 있는것인지요?
-
제가 필요해서 10개 까지 늘렸는데 그 파일을 올린 것 같네요 ㅎㅎ
궁금해서 저도 질문하나 드립니다.
지금 사용하시는 CMS가 XE인걸로 알고 있는데
SketchBook5 게시판스킨 - 문하우스 수정버전 Pro V 1.8.4 (라이믹스전용) 설치를 해서 XE에서도 작동이 되는지요?
제가 XE에서 테스트 했을때는 작동이 안되었던 것 같은데...
위의 버전 설치해서 잘 작동이 되고 있다면 아래의 파일들 받아서 덮어 씌우시면 되고,
만약 XE버전 스킨을 사용 중이시면 아래의 버전 내려 받아서 해당 부분을 찾아서 늘려 주면 됩니다.
p.s 이전 파일에 오류가 있었네요. 다시 받아서 보세요.
-
이것 저것 시도하다 보니 뭘 설치했는지 헷갈리네요.
서버에 설치된 파일 중에 버전 정보를 볼 수 있는 방법이 있으시면 확인해 볼께요.
-
게시판설정 > 스킨설정 상단에 보시면 스킨기본정보에 날짜를 한번 보세요.
2021년 이후면 라이믹스전용이고 그 이전이면 XE버전 입니다.
-
헛... 라이믹스 전용인듯 하네요??
이러다 나중에 작동이 않되면 다운그레이드 해야겠죠?
-
아! 라이믹스전용이 XE에서도 작동이 되는군요.
지금 잘 작동 되고 있으니 그냥 사용하셔도 됩니다.
설정중에 특별한 기능만 사용하지 않으면 되는 모양입니다.
-
@안드레아님 성당사이트 공지사항 글 작성 한번 해 보세요.
제가 테스트한 XE 사이트에서 스케치북_MH(라이믹스전용)를 설치하고 테스트 해보니
글 작성후 정상적으로 화면이 넘어가지질 않습니다.
혹시 php버전 문제일 수도 있으니 테스트 한번 부탁드립니다.
PHP Version(Ver. 5.6.39) 입니다.
그리고 /addons/web_fonts/css/button.min.css 파일 삭제하세요.
-
방금 테스트1, 테스트2, 테스트3 로 각각 게시글 작성해 봤는데 정상적으로 작성됩니다.
웹호스팅은 cafe24를 이용하고 있구요.
서버환경은 UTF-8 (PHP5, MySQL5.x)이라고 명시되어 있네요.
/addons/web_fonts/css/button.min.css 파일은 삭제했습니다. 근데 왜 삭제하는지 궁금해요^^
-
php5.x 버전에서도 작동을 하는군요.
그럼 어떤 문제인지 감이 잘 안오네요.
혹시 정확한 php버전 알 수 있을까요.
"관리자페이지" 하단에 "서버정보출력" 누르면 정확한 버전 나옵니다.
그리고 bottom.min.css파일 삭제는 bottom.css파일을 불러와야 하는데 bottom.min.css을 먼저 불러와서 css가 정상적으로 출력이 되지 않아서 삭제하라고 한 것입니다.
위에 님이 작성한 이미지와 아래 이미지가 버턴안의 padding간격이 다른 것이 보이시죠.
-
아, 그렇군요. 버턴이 위 아래 간격이 좁아 좀 답답해 보였는데, 훨씬 보기 좋군요.
팔공산님께서 말씀하신 "관리자페이지"는 카페24의 정보를 말씀하시는건가요?
-
현재 사용하고 있는 php 버전입니다.
UTF-8 (PHP7.0, mariadb-10.0.x)
요렇게 되어 있어요^^
-
Xe버전과 라이믹스버전의 차이가 추천,비추천 출력 차이네요
님의 사이트에는 추천버턴 자체를 출력하지 않으니 정상작동 하네요.
Xe에서도 정상작동 하게 수정해 놓았으니 혹시 추천버턴 사용할일 있으면 버전업 하세요. -
팔공산님^^
가르쳐 주신대로 잘 정리해서 운영하고 있습니다.
그런데, 게시판 스킨에서는 "공지"로 체크한 게시물이 상단에 우선 표시되는데,
첫 화면 위젯의 게시판에는 그렇지 않고 게시날자 순서로 나옵니다.
이것은 어디를 수정해야 하는지요?
- 게시판 스킨
- 첫화면 위젯 스킨
-
위젯에서 공지글을 위로 올리는 기능은 없습니다.
먼저 이글을 한번 보시고요.
https://moonhouse.co.kr/xetip/505865
가장 간단하게 설명드리면
https://moonhouse.co.kr/xemy/530374 이 버전을 사용중이시면
"게시판설정"
> "확장변수" > "확장 변수 ID"를 "end"로 하시고 "형식"을 "일자(연월일)"로 하나 만듭니다.
> "스킨설정" > "확장변수 설정" > "
[긴급공지], [사목지침]... 이런 분류를 어떻게 날짜로 지정할지는 님이 해결하셔야 할 듯합니다.