API migration
A number of APIfrom v1 have been deprecated in the doc
https://developer.zendesk.com/documentation/help_center/help-center-templates/v1/
Example
{{section.internal}}
This property had previously been deprecated (always returning false) and has now been removed.
This being said where can i find in favor of what have they been replaced ?
-
Hi Raphaël! I looked into this for you and I do not believe that this helper has been replaced since its deprecation years ago. We don't even return a property for it in the section object, which I thought was surprising. I would recommend going to our help center feedback forum here and create a post using the template at the top of that forum. If you decide to create that post, let me know here and I can try and escalate that internally...it seems like a very reasonable request to me!
-
I'm also updating my API. So if a section was internal, there used to show a lock icon because it's
{{#if section.internal}}
<span class="icon-lock" title="{{t 'internal'}}"></span>
{{/if}}So what happens now in version2? Do we just remove this completely? Can we still add this icon to titles for articles that are for agents and admins?
-
Hey, Heather!
Yes you'd just need to remove the "internal
" property from the section object as that's no longer supported. You can still add the icon to articles by adding the internal property to the article object, similarly to how you would have done with sections in the past.
I hope this helps!
Tipene
Please sign in to leave a comment.
3 Comments