最近搜索
没有最近搜索

Daniel Dobrzensky
已加入2021年10月16日
·
最后活动2024年2月22日
关注
1
关注者
0
活动总数
29
投票
4
订阅
13
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Daniel Dobrzensky
Daniel Dobrzensky 进行了评论,
Ansar KA You'd do this through the Admin Center.
See: Managing triggers
查看评论 · 已于 2022年6月20日 发布 · Daniel Dobrzensky
0
关注者
0
投票
0
评论
Daniel Dobrzensky 进行了评论,
Your trigger to fire the email probably doesn't include updates via the API:
It could be other things, but that's a good place to start.
Just be sure you don't have other API updates that shouldn't fire an email. If you do you'd just need to add some conditions to exclude those/only include this one (like comment is present, etc.)
查看评论 · 已于 2022年6月09日 发布 · Daniel Dobrzensky
0
关注者
0
投票
0
评论
Daniel Dobrzensky 进行了评论,
There's a Chrome extension for this! Solves the problem perfectly.
https://chrome.google.com/webstore/detail/zendesk-quicktab/moiloihigegdbekeabannnkibekfnekf
查看评论 · 已于 2022年3月05日 发布 · Daniel Dobrzensky
0
关注者
3
投票
0
评论
Daniel Dobrzensky 进行了评论,
I don't think Zendesk has a similar reference doc for CSS in emails, but they do go over some good info here:
Customizing your templates for email notifications
I'm also not sure if you'll be able to apply classes inside of triggers and automations (if that's what you meant). Zendesk intentionally limits what you can do there.
I suggest you stay away from adding too much code in your triggers and update your email template instead if possible. There's so much more flexibility there.
查看评论 · 已于 2022年2月27日 发布 · Daniel Dobrzensky
0
关注者
0
投票
0
评论
Daniel Dobrzensky 进行了评论,
Daniel Dobrzensky 进行了评论,
Ok - I tested this and got it figured out!
The issue was ultimately related to the data type of each value. The category ID is an integer, while the setting value is a string.
I found a way around this by looking at the URL with the filter helper.
Here's the code I used
In the manifest.json file:
{
"label": "Category ID Setting Group",
"variables": [
{
"identifier": "category_first",
"type": "text",
"description": "Category ID Value Description",
"label": "Category ID Value Label",
"value": "1234"
}
]
}
You'll put the numeric category ID in the settings panel (listed as "1234" above). This will allow you to use the ID and it will work for any translated languages you may have.
In the home_page.hbs file:
{{#each (filter categories on="url" contains=settings.category_first)}}
{{name}}
{{/each}}
The filter helper looks for the value you entered in the setting panel, which should be the category ID. It's technically possible that you may have two categories that contain the same string of numbers, but it's highly unlikely (for example category 1234 and category 12345). If that happens, you can add a the leading or following hyphen after the number, but I doubt that should be necessary.
Important note: This must be utilized on the home page template. The categories object is only available on that page.
I think this will get you there! I hope this helps 😁
查看评论 · 已于 2022年1月06日 发布 · Daniel Dobrzensky
0
关注者
1
投票
0
评论
Daniel Dobrzensky 进行了评论,
This should be pretty simple then. You have a couple options.
Option 1 - simplest.
{{#if settings.category_first}}
{{code to render if a value is present}}
{{/if}}
In this case, the block will render whenever you have some value in the theme setting. You can put anything there and it would render. If it's empty, it won't render.
Option 2
{{#if (compare category.id "==" settings.category_first)}}
{{code to render if true}}
{{/if}}
In this case, the block will only render when the category ID matches what you have in the theme setting. If you input a different value, or leave it blank, it won't render. A note here - you may want to play around with the "==" operator. If it doesn't work, try "=" instead.
If you later want to exclude that category from an each iteration you can use the unless helper to do that.
Also, Handlebars has a way to reference steps in an iteration. So you could target the first item, for example. More info here.
Hope that helps.
查看评论 · 已于 2021年12月30日 发布 · Daniel Dobrzensky
0
关注者
2
投票
0
评论
Daniel Dobrzensky 进行了评论,
Gotcha - I was a bit misunderstood.
Just to clarify - are you hoping to only show the category you enter into the template settings? Or are you trying to display that category in one way, while displaying the all of the others in another? What's your ultimate goal here?
查看评论 · 已于 2021年12月30日 发布 · Daniel Dobrzensky
0
关注者
1
投票
0
评论
Daniel Dobrzensky 进行了评论,
Hey Serhii,
It looks like the syntax is a bit off. When you're using a settings object in an is helper you're comparing the "identifier" on the left, to the "value" on the right.
Try something like this:
{{#is settings.category_first "4409347111442"}}
{{your code to render when true}}
{{/is}}
I'm not entirely sure if you need to escape the settings object in this case - you'll want to play around with that.
Also note the category ID is listed within quotations - this is because the type is listed as text, so it's evaluated as a string instead of an integer. This is important because the is helper uses a strict comparison.
You might also try just placing the settings.category_first object within your each helper, just to see if it prints out ok. You'd expect a text value for each of your categories. If that works, then add in the is helper. That's just what I like to do to troubleshoot.
Hopefully this helps you get something working. Good luck!
查看评论 · 已于 2021年12月29日 发布 · Daniel Dobrzensky
0
关注者
2
投票
0
评论
Daniel Dobrzensky 进行了评论,
Zenplates has example code for that in the Documentation section of their site:
https://zenplates.co/framework/plugins/scrollspy
We just updated our help center and we have this feature. You can see it here:
https://support.scribd.com/hc/en-us/articles/210135426-What-is-Scribd-
查看评论 · 已于 2021年11月07日 发布 · Daniel Dobrzensky
0
关注者
0
投票
0
评论