The name of the file is {PrismicPage.url}.js
.
Ya it has a uid. Here is the JSON of the page type:
{
"Main" : {
"uid" : {
"type" : "UID",
"config" : {
"label" : "UID"
}
},
"title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading2",
"label" : "Title"
}
},
"page_description" : {
"type" : "StructuredText",
"config" : {
"multi" : "paragraph",
"label" : "Page Description"
}
},
"body" : {
"type" : "Slices",
"fieldset" : "Slice zone",
"config" : {
"labels" : null,
"choices" : {
"faq" : {
"type" : "Slice",
"fieldset" : "FAQ",
"description" : "FAQ Section",
"icon" : "question_answer",
"display" : "list",
"non-repeat" : { },
"repeat" : {
"question" : {
"type" : "StructuredText",
"config" : {
"single" : "heading3",
"label" : "Question"
}
},
"answer" : {
"type" : "StructuredText",
"config" : {
"multi" : "paragraph,hyperlink,list-item,o-list-item",
"label" : "Answer"
}
}
}
},
"link_cards" : {
"type" : "Slice",
"fieldset" : "Link Cards",
"description" : "Group of Link Cards",
"icon" : "check_box_outline_blank",
"display" : "grid",
"non-repeat" : {
"section_title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading3",
"label" : "Section title"
}
},
"section_description" : {
"type" : "StructuredText",
"config" : {
"multi" : "paragraph",
"label" : "Section Description"
}
}
},
"repeat" : {
"card_title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading3",
"label" : "Card Title"
}
},
"card_text" : {
"type" : "StructuredText",
"config" : {
"multi" : "paragraph",
"label" : "Card Text"
}
},
"link" : {
"type" : "Text",
"config" : {
"label" : "Link"
}
},
"card_tag" : {
"type" : "Text",
"config" : {
"label" : "Card Tag"
}
},
"card_tag_color" : {
"type" : "Select",
"config" : {
"options" : [ "primary", "secondary", "warning" ],
"default_value" : "primary",
"label" : "Card Tag Color"
}
}
}
},
"paragraph_section" : {
"type" : "Slice",
"fieldset" : "Paragraph Section",
"description" : "Paragraph Section",
"icon" : "description",
"display" : "list",
"non-repeat" : {
"paragraph_title" : {
"type" : "StructuredText",
"config" : {
"single" : "heading3",
"label" : "Paragraph Title"
}
},
"paragraph_text" : {
"type" : "StructuredText",
"config" : {
"multi" : "paragraph,hyperlink,list-item,o-list-item",
"label" : "Paragraph Text"
}
}
},
"repeat" : { }
}
}
}
}
}
}