一键导入
content-sdk-graphql-data-fetching
Page/dictionary fetch via SitecoreClient in [[...path]].tsx getStaticProps/getServerSideProps.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Page/dictionary fetch via SitecoreClient in [[...path]].tsx getStaticProps/getServerSideProps.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Layout data from getPage/getComponentData; path/locale from extractPath/context.
Registers components in .sitecore/component-map.ts for Pages Router layout and editing.
Creates new Sitecore components under src/components/. Pages Router; map auto-regenerates on dev/build.
Multiple renderings of one component type; regenerate component map after changes.
Next.js i18n via next.config.js; locale from context.locale in data methods.
Preview/editing for Pages Router via context.preview and context.previewData in [[...path]].tsx.
| name | content-sdk-graphql-data-fetching |
| description | Page/dictionary fetch via SitecoreClient in [[...path]].tsx getStaticProps/getServerSideProps. |
Detail: AGENTS-router-specifics.md#routing-and-data-fetching
Read first: src/pages/[[...path]].tsx, src/lib/sitecore-client.ts
extractPath(context); locale from context.localeclient.getPage(path, { locale }) then getDictionary and getComponentDataclient.getPagePaths(sites, context?.locales)Docs: Content SDK.