Recent searches


No recent searches

nick's Avatar

nick

Joined May 10, 2023

·

Last activity May 11, 2023

Following

0

Followers

0

Total activity

4

Votes

0

Subscriptions

2

ACTIVITY OVERVIEW

Latest activity by nick

nick created a post,

Post Feedback - Help Center (Guide)

Hi there

Hopefully someone can help :)

Seeking to serve a defined header image on article pages, and if no header image is defined then serve a default image.

Below serves the defined image of the first article (6701953412509) but the second article (6699434047005) header is the default:

 


          {{#is article.id 6701953412509}}
                  {{article.title}}
                {{article.title}}
 

        {{#is article.id 6699434047005}}
                  {{article.title}}
                {{article.title}}
                  {{/is}}    

           {{else}}
                  {{settings.welcome_title}}
                {{settings.welcome_title}}
              {{/is}}   

   

 

 

This resolves, but obviously no default image when not defined as  {{else}} is removed.

   
      {{#is article.id 6701953412509}}
      {{article.title}}
        {{article.title}}
 
{{/is}}
        {{#is article.id 6699434047005}}
      {{article.title}}
        {{article.title}}
      {{/is}}
   

Articles referenced:

  1. https://blueislands.zendesk.com/hc/en-gb/articles/6701953412509
  2. https://blueislands.zendesk.com/hc/en-gb/articles/6699434047005

I'm sure it's a simple fix! If anyone can help that would be amazing!

Thanks
Nick

Posted May 11, 2023 · nick

0

Followers

2

Votes

1

Comment


nick commented,

CommentUsing themes and customizing your Help Center

Hi there

Hopefully someone can help :)

Seeking to serve a defined header image on article pages, and if no header image is defined then serve a default image.

Below serves the defined image of the first article (6701953412509) but the second article (6699434047005) header is the default:

 


          {{#is article.id 6701953412509}}
                  {{article.title}}
                {{article.title}}
 

        {{#is article.id 6699434047005}}
                  {{article.title}}
                {{article.title}}
                  {{/is}}    

           {{else}}
                  {{settings.welcome_title}}
                {{settings.welcome_title}}
              {{/is}}   

   

 

 

This resolves, but obviously no default image when not defined as  {{else}} is removed.

   
      {{#is article.id 6701953412509}}
      {{article.title}}
        {{article.title}}
 
{{/is}}
        {{#is article.id 6699434047005}}
      {{article.title}}
        {{article.title}}
      {{/is}}
   

Articles referenced:

  1. https://blueislands.zendesk.com/hc/en-gb/articles/6701953412509
  2. https://blueislands.zendesk.com/hc/en-gb/articles/6699434047005

I'm sure it's a simple fix! If anyone can help that would be amazing!

Thanks
Nick

 

View comment · Posted May 10, 2023 · nick

0

Followers

0

Votes

0

Comments