-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How to use Display.RenderTemplates as directives and get it working #348
Comments
The directive method just passes thru whatever json you provide, so you need to validate that your json is correct. You can do this manually in the simulator or thru the SMAPI.
|
@matt-kruse Thank you very much, I could make the template working! However, now only the template is displayed. According to the Amazon documentation, it should be possible to display a hint for the user
Unfortunately my hint is not displayed.
What is the right way in this alexa framework to add two custom directives like a display template and a hint? |
I have the same problem. The hint is visible on BodyTemplate2, but not on BodyTemplate1. |
Multiple directives are just passed along to the user in the JSON response. If it's not working, then check your JSON to see if it's in the correct format. Log the full response, then inspect it to see if it matches the Alexa documentation. |
When I use the same content for BodyTemplate1, the hint is not visible, but in BodyTemplate2, the hint is visible. Below are the JSON outputs for Body Templates 1 and 2 respectively. They seem to match the documentation for hint directives, but could you please check @matt-kruse? I'm a JS noob. BodyTemplate1 output:
BodyTemplate2 output
Any idea on what is wrong? |
I don't think BodyTemplate1 supports hints. |
Really? Oh no. I need to have full width text with a hint. BodyTemplates 2 and 3 only show text one on half of the screen. |
https://developer.amazon.com/docs/custom-skills/display-interface-reference.html#hint-directive Maybe you close your session or something else. |
No sir. My sessions are fine. As matt-kruse noted above, hints are not possible for BodyTemplate1. This was also corroborated by a few threads on the Alexa developer forum. |
Is there any option for changing text color in List template1. It would be helpful if you share the json sample. |
You can easily use RichText and use
Or if |
@patrickbussmann Did you manage to make it work? |
Hi guys,
I'm currently trying to integrate some display responses and wanted to use the Display.RenderTemplates from the Alexa Skills Kit.
My problem is, I can't get it working. Unfortunately, the documentation isn't really detailed in this point, it just says
So, here's the code of the latest of my tries:
Well, this code doesn't work, my Echo Show says there was a problem with the answer of the skill.
So, could anyone show me a working example of such a DisplayTemplate directive please?
Best regards,
Benjamin
The text was updated successfully, but these errors were encountered: