blogger
blogger - BlogSearch 위젯
위젯 타입은 type='BlogSearch' 이며 위젯의 이름은 '블로그 검색' 입니다. 내 블로그의 게시물을 검색할 수 있는 검색 폼을 설치할 수 있습니다. 위젯에서 사용할 수 있는 데이터 태그는 <data:title/> 로 위젯의 제목만 제공합니다. 기본적인 폼 태그 형식은 다음과 같습니다.
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<div expr:id='data:widget.instanceId + "_form"'>
<form class='gsc-search-box' expr:action='data:blog.searchUrl'>
<b:attr cond='not data:view.isPreview' name='target' value='_top'/>
<table cellpadding='0' cellspacing='0' class='gsc-search-box'>
<tbody>
<tr>
<td class='gsc-input'>
<input
autocomplete='off' class='gsc-input' name='q' type='text'
expr:value='data:view.isSearch ? data:view.search.query.escaped : ""'/>
</td>
<td class='gsc-search-button'>
<input class='gsc-search-button'
expr:value='data:messages.search' title='search' type='submit'/>
</td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
0 댓글