最近搜索


没有最近搜索

Iggy Pritzker's Avatar

Iggy Pritzker

已加入2021年4月16日

·

最后活动2022年2月01日

关注

0

关注者

0

活动总数

8

投票

0

订阅

4

活动概览

的最新活动 Iggy Pritzker

Iggy Pritzker 进行了评论,

社区评论 Discussion - Tips and best practices from the community

we can also do without javascript in template:

  {{#if alternative_locales}}
         {{#is current_locale.name 'English (US)'}}
            {{search placeholder='Search Resources' instant=true}}
          {{else}}
             {{search placeholder='Buscar Recursos' instant=true}}
          {{/is}}
    {{/if}}

查看评论 · 已于 2018年12月28日 发布 · Iggy Pritzker

0

关注者

0

投票

0

评论


Iggy Pritzker 进行了评论,

社区评论 Discussion - Tips and best practices from the community

Doesn't work when having more HTML elements between them :(

查看评论 · 已于 2016年9月15日 发布 · Iggy Pritzker

0

关注者

0

投票

0

评论


Iggy Pritzker 进行了评论,

社区评论 Discussion - Tips and best practices from the community

/* search placeholder change text */
var currentLanguage = $('html').attr('lang').toLowerCase();
if(currentLanguage === "de") {
$('.search #query').attr('placeholder','Suchen Sie in unserer Unterstützung');
}

查看评论 · 已于 2016年6月29日 发布 · Iggy Pritzker

0

关注者

0

投票

0

评论


Iggy Pritzker 进行了评论,

社区评论 Discussion - Tips and best practices from the community

Just add placeholder to search tag

{{search placeholder='Search our support' instant=true}}

It works now, but we need a way to make dynamic content there for multiple languages...

查看评论 · 已于 2016年6月07日 发布 · Iggy Pritzker

0

关注者

0

投票

0

评论