최근 검색


최근 검색 없음

Alief Putera's Avatar

Alief Putera

가입한 날짜: 2022년 4월 22일

·

마지막 활동: 2022년 4월 25일

팔로잉

0

팔로워

0

총 활동 수

6

투표 수

2

가입 플랜

1

활동 개요

님의 최근 활동 Alief Putera

Alief Putera님이 에 댓글을 입력함

댓글How to customize the theme of the help center

Ifra Saqlain

Well noted. Thanks for being so helpful.

댓글 보기 · 2022년 4월 25일에 게시됨 · Alief Putera

0

팔로워

0

투표 수

0

댓글


Alief Putera님이 에 댓글을 입력함

댓글How to customize the theme of the help center

Hi Ifra Saqlain

Thanks! I didn't know we can include internal css (and apparently

댓글 보기 · 2022년 4월 22일에 게시됨 · Alief Putera

0

팔로워

0

투표 수

0

댓글


Alief Putera님이 에 댓글을 입력함

댓글How to customize the theme of the help center

Hi everyone, I want to ask about conditional of showing logo in header. So I want to hide logo in 'new_request' page but show in other pages.

I have 2 thoughts to achieve this:

1. Check current page url/path then use it as conditional when render the logo block. Something like
{{#if current_page = new_request}}. Is there any helper available to check that?

2. Create custom helper/function to check current url then call from template. Something like:
## script.js
Handlebars.registerHelper("check_url", function() {
  return /* check current url logic */;
});

## template
{{ do check_url check}}

For number 1 I can't find it in docs. For number 2 it doesn't seem to work (no handlebars.js. If I have to include it first, how?).

Thank you in advance

댓글 보기 · 2022년 4월 22일에 편집됨 · Alief Putera

0

팔로워

0

투표 수

0

댓글