useCmsMeta
Category:
CMS (Shopping Experiences)
TODO: remove parameter and use reactive state of cmsResponse provided by useCms composable
Types
ts
export function useCmsMeta(
entity: Schemas["Category"] | Schemas["Product"] | Schemas["LandingPage"],
): UseCmsMetaReturn
ts
export type UseCmsMetaReturn = {
/**
* Meta title for current page/entity
*/
title: ComputedRef<string>;
/**
* Meta tags for current page/entity
*/
meta: ComputedRef<{ name: string; content: string }[]>;
};