Remove name and ID from structured answer template
This commit is contained in:
parent
b5ea6bc894
commit
1b9b7a61ac
@ -35,15 +35,6 @@ handle <: $ia_handler :> => sub {
|
|||||||
return "plain text response",
|
return "plain text response",
|
||||||
structured_answer => {
|
structured_answer => {
|
||||||
|
|
||||||
# ID - Must be unique and match Instant Answer page
|
|
||||||
# E.g. https://duck.co/ia/view/calculator has `id => 'calculator'``
|
|
||||||
id => '<: $ia_id :>',
|
|
||||||
|
|
||||||
# Name - Used for Answer Bar Tab
|
|
||||||
# Value should be chosen from existing Instant Answer topics
|
|
||||||
# see http://docs.duckduckhack.com/frontend-reference/display-reference.html#name-string-required
|
|
||||||
name => 'Answer',
|
|
||||||
|
|
||||||
data => {
|
data => {
|
||||||
title => "My Instant Answer Title",
|
title => "My Instant Answer Title",
|
||||||
subtitle => "My Subtitle",
|
subtitle => "My Subtitle",
|
||||||
|
@ -21,15 +21,6 @@ handle <: $ia_handler :> => sub {
|
|||||||
return "plain text response",
|
return "plain text response",
|
||||||
structured_answer => {
|
structured_answer => {
|
||||||
|
|
||||||
# ID - Must be unique and match Instant Answer page
|
|
||||||
# E.g. https://duck.co/ia/view/calculator has `id => 'calculator'``
|
|
||||||
id => '<: $ia_id :>',
|
|
||||||
|
|
||||||
# Name - Used for Answer Bar Tab
|
|
||||||
# Value should be chosen from existing Instant Answer topics
|
|
||||||
# see https://duck.co/duckduckhack/display_reference#codenamecode-emstringem-required
|
|
||||||
name => 'Answer',
|
|
||||||
|
|
||||||
data => {
|
data => {
|
||||||
<: $ia_handler :> => \<: $ia_handler_var :>_
|
<: $ia_handler :> => \<: $ia_handler_var :>_
|
||||||
},
|
},
|
||||||
|
@ -17,8 +17,6 @@ DDH.<: $ia_id :> = DDH.<: $ia_id :> || {};
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
id: '<: $ia_id :>',
|
|
||||||
|
|
||||||
meta: {
|
meta: {
|
||||||
sourceName: "Source Domain",
|
sourceName: "Source Domain",
|
||||||
sourceUrl: "https://source.website.com"
|
sourceUrl: "https://source.website.com"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user