트리거 발생

scsData.contentTriggerFunction(payload)를 사용하여 콘텐츠 레이아웃에서 트리거를 발생시킬 수 있습니다.

다음은 작성자 이름을 누를 때 트리거를 발생시키는 Author 콘텐츠 레이아웃의 예입니다.

{{#data}}
<div class="author-container">
    <span class="author-name" onclick='{{scsData.contentTriggerFunction}}("field:starter-blog-post_author:equals={{author_id}}")'>{{starter-blog-author_name}}</span>
{{/data}}

페이로드는 현재 선택된 작성자에 대한 검색 질의로, 페이지의 다른 콘텐츠 목록 항목이 수신할 수 있습니다.