@jahia/agentic 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/claude/.claude/agents/cnd-child-nodes.md +74 -0
- package/dist/claude/.claude/agents/cnd-jahia-mixins.md +113 -0
- package/dist/claude/.claude/agents/cnd-numbers-dates.md +61 -0
- package/dist/claude/.claude/agents/cnd-string-selectors.md +94 -0
- package/dist/claude/.claude/agents/jahia-cnd-author.md +130 -0
- package/dist/claude/.claude/agents/jahia-dev-worker.md +264 -0
- package/dist/claude/.claude/agents/jahia-reviewer.md +105 -0
- package/dist/claude/.claude/rules/jahia.md +15 -6
- package/dist/claude/.claude/skills/jahia/SKILL.md +5 -1
- package/dist/claude/.claude/skills/jahia-dev-accessibility/SKILL.md +3 -3
- package/dist/claude/.claude/skills/jahia-dev-build-component/SKILL.md +10 -7
- package/dist/claude/.claude/skills/jahia-dev-create-page-template/SKILL.md +59 -21
- package/dist/claude/.claude/skills/jahia-dev-create-template-set/SKILL.md +20 -47
- package/dist/claude/.claude/skills/jahia-dev-create-view/SKILL.md +3 -3
- package/dist/claude/.claude/skills/jahia-dev-define-content-type/SKILL.md +43 -486
- package/dist/claude/.claude/skills/jahia-dev-define-content-type/references/modeling-decisions.md +52 -0
- package/dist/claude/.claude/skills/jahia-dev-review-cnd/SKILL.md +79 -0
- package/dist/claude/.claude/skills/jahia-dev-review-cnd/scripts/check-cnd.d.mts +13 -0
- package/dist/claude/.claude/skills/jahia-dev-review-cnd/scripts/check-cnd.mjs +198 -0
- package/dist/claude/.claude/skills/jahia-dev-site-review/SKILL.md +70 -0
- package/dist/claude/.claude/skills/jahia-dev-site-review/scripts/review-pages.mjs +85 -0
- package/dist/claude/.claude/skills/jahia-dev-start-local/SKILL.md +18 -26
- package/dist/claude/.claude/skills/jahia-orchestrate/SKILL.md +148 -0
- package/dist/claude/.claude/skills/jahia-orchestrate/scripts/verify-pages.mjs +59 -0
- package/dist/claude/CLAUDE.md +16 -7
- package/dist/codex/.agents/skills/jahia/SKILL.md +5 -1
- package/dist/codex/.agents/skills/jahia-dev-accessibility/SKILL.md +3 -3
- package/dist/codex/.agents/skills/jahia-dev-build-component/SKILL.md +10 -7
- package/dist/codex/.agents/skills/jahia-dev-create-page-template/SKILL.md +59 -21
- package/dist/codex/.agents/skills/jahia-dev-create-template-set/SKILL.md +20 -47
- package/dist/codex/.agents/skills/jahia-dev-create-view/SKILL.md +3 -3
- package/dist/codex/.agents/skills/jahia-dev-define-content-type/SKILL.md +43 -486
- package/dist/codex/.agents/skills/jahia-dev-define-content-type/references/modeling-decisions.md +52 -0
- package/dist/codex/.agents/skills/jahia-dev-review-cnd/SKILL.md +79 -0
- package/dist/codex/.agents/skills/jahia-dev-review-cnd/scripts/check-cnd.d.mts +13 -0
- package/dist/codex/.agents/skills/jahia-dev-review-cnd/scripts/check-cnd.mjs +198 -0
- package/dist/codex/.agents/skills/jahia-dev-site-review/SKILL.md +70 -0
- package/dist/codex/.agents/skills/jahia-dev-site-review/scripts/review-pages.mjs +85 -0
- package/dist/codex/.agents/skills/jahia-dev-start-local/SKILL.md +18 -26
- package/dist/codex/.agents/skills/jahia-orchestrate/SKILL.md +148 -0
- package/dist/codex/.agents/skills/jahia-orchestrate/scripts/verify-pages.mjs +59 -0
- package/dist/codex/.codex/agents/cnd-child-nodes.toml +3 -0
- package/dist/codex/.codex/agents/cnd-jahia-mixins.toml +3 -0
- package/dist/codex/.codex/agents/cnd-numbers-dates.toml +3 -0
- package/dist/codex/.codex/agents/cnd-string-selectors.toml +3 -0
- package/dist/codex/.codex/agents/jahia-cnd-author.toml +3 -0
- package/dist/codex/.codex/agents/jahia-dev-worker.toml +3 -0
- package/dist/codex/.codex/agents/jahia-reviewer.toml +3 -0
- package/dist/codex/AGENTS.md +17 -8
- package/dist/copilot/.agents/skills/jahia/SKILL.md +5 -1
- package/dist/copilot/.agents/skills/jahia-dev-accessibility/SKILL.md +3 -3
- package/dist/copilot/.agents/skills/jahia-dev-build-component/SKILL.md +10 -7
- package/dist/copilot/.agents/skills/jahia-dev-create-page-template/SKILL.md +59 -21
- package/dist/copilot/.agents/skills/jahia-dev-create-template-set/SKILL.md +20 -47
- package/dist/copilot/.agents/skills/jahia-dev-create-view/SKILL.md +3 -3
- package/dist/copilot/.agents/skills/jahia-dev-define-content-type/SKILL.md +43 -486
- package/dist/copilot/.agents/skills/jahia-dev-define-content-type/references/modeling-decisions.md +52 -0
- package/dist/copilot/.agents/skills/jahia-dev-review-cnd/SKILL.md +79 -0
- package/dist/copilot/.agents/skills/jahia-dev-review-cnd/scripts/check-cnd.d.mts +13 -0
- package/dist/copilot/.agents/skills/jahia-dev-review-cnd/scripts/check-cnd.mjs +198 -0
- package/dist/copilot/.agents/skills/jahia-dev-site-review/SKILL.md +70 -0
- package/dist/copilot/.agents/skills/jahia-dev-site-review/scripts/review-pages.mjs +85 -0
- package/dist/copilot/.agents/skills/jahia-dev-start-local/SKILL.md +18 -26
- package/dist/copilot/.agents/skills/jahia-orchestrate/SKILL.md +148 -0
- package/dist/copilot/.agents/skills/jahia-orchestrate/scripts/verify-pages.mjs +59 -0
- package/dist/copilot/AGENTS.md +17 -8
- package/dist/cursor/.agents/skills/jahia/SKILL.md +5 -1
- package/dist/cursor/.agents/skills/jahia-dev-accessibility/SKILL.md +3 -3
- package/dist/cursor/.agents/skills/jahia-dev-build-component/SKILL.md +10 -7
- package/dist/cursor/.agents/skills/jahia-dev-create-page-template/SKILL.md +59 -21
- package/dist/cursor/.agents/skills/jahia-dev-create-template-set/SKILL.md +20 -47
- package/dist/cursor/.agents/skills/jahia-dev-create-view/SKILL.md +3 -3
- package/dist/cursor/.agents/skills/jahia-dev-define-content-type/SKILL.md +43 -486
- package/dist/cursor/.agents/skills/jahia-dev-define-content-type/references/modeling-decisions.md +52 -0
- package/dist/cursor/.agents/skills/jahia-dev-review-cnd/SKILL.md +79 -0
- package/dist/cursor/.agents/skills/jahia-dev-review-cnd/scripts/check-cnd.d.mts +13 -0
- package/dist/cursor/.agents/skills/jahia-dev-review-cnd/scripts/check-cnd.mjs +198 -0
- package/dist/cursor/.agents/skills/jahia-dev-site-review/SKILL.md +70 -0
- package/dist/cursor/.agents/skills/jahia-dev-site-review/scripts/review-pages.mjs +85 -0
- package/dist/cursor/.agents/skills/jahia-dev-start-local/SKILL.md +18 -26
- package/dist/cursor/.agents/skills/jahia-orchestrate/SKILL.md +148 -0
- package/dist/cursor/.agents/skills/jahia-orchestrate/scripts/verify-pages.mjs +59 -0
- package/dist/cursor/.cursor/agents/cnd-child-nodes.md +74 -0
- package/dist/cursor/.cursor/agents/cnd-jahia-mixins.md +113 -0
- package/dist/cursor/.cursor/agents/cnd-numbers-dates.md +61 -0
- package/dist/cursor/.cursor/agents/cnd-string-selectors.md +94 -0
- package/dist/cursor/.cursor/agents/jahia-cnd-author.md +130 -0
- package/dist/cursor/.cursor/agents/jahia-dev-worker.md +264 -0
- package/dist/cursor/.cursor/agents/jahia-reviewer.md +105 -0
- package/dist/cursor/.cursor/rules/jahia.mdc +15 -6
- package/dist/gemini/.agents/skills/jahia/SKILL.md +5 -1
- package/dist/gemini/.agents/skills/jahia-dev-accessibility/SKILL.md +3 -3
- package/dist/gemini/.agents/skills/jahia-dev-build-component/SKILL.md +10 -7
- package/dist/gemini/.agents/skills/jahia-dev-create-page-template/SKILL.md +59 -21
- package/dist/gemini/.agents/skills/jahia-dev-create-template-set/SKILL.md +20 -47
- package/dist/gemini/.agents/skills/jahia-dev-create-view/SKILL.md +3 -3
- package/dist/gemini/.agents/skills/jahia-dev-define-content-type/SKILL.md +43 -486
- package/dist/gemini/.agents/skills/jahia-dev-define-content-type/references/modeling-decisions.md +52 -0
- package/dist/gemini/.agents/skills/jahia-dev-review-cnd/SKILL.md +79 -0
- package/dist/gemini/.agents/skills/jahia-dev-review-cnd/scripts/check-cnd.d.mts +13 -0
- package/dist/gemini/.agents/skills/jahia-dev-review-cnd/scripts/check-cnd.mjs +198 -0
- package/dist/gemini/.agents/skills/jahia-dev-site-review/SKILL.md +70 -0
- package/dist/gemini/.agents/skills/jahia-dev-site-review/scripts/review-pages.mjs +85 -0
- package/dist/gemini/.agents/skills/jahia-dev-start-local/SKILL.md +18 -26
- package/dist/gemini/.agents/skills/jahia-orchestrate/SKILL.md +148 -0
- package/dist/gemini/.agents/skills/jahia-orchestrate/scripts/verify-pages.mjs +59 -0
- package/dist/gemini/AGENTS.md +17 -8
- package/dist/gemini/GEMINI.md +2 -2
- package/dist/index.js +13 -0
- package/dist/opencode/.agents/skills/jahia/SKILL.md +5 -1
- package/dist/opencode/.agents/skills/jahia-dev-accessibility/SKILL.md +3 -3
- package/dist/opencode/.agents/skills/jahia-dev-build-component/SKILL.md +10 -7
- package/dist/opencode/.agents/skills/jahia-dev-create-page-template/SKILL.md +59 -21
- package/dist/opencode/.agents/skills/jahia-dev-create-template-set/SKILL.md +20 -47
- package/dist/opencode/.agents/skills/jahia-dev-create-view/SKILL.md +3 -3
- package/dist/opencode/.agents/skills/jahia-dev-define-content-type/SKILL.md +43 -486
- package/dist/opencode/.agents/skills/jahia-dev-define-content-type/references/modeling-decisions.md +52 -0
- package/dist/opencode/.agents/skills/jahia-dev-review-cnd/SKILL.md +79 -0
- package/dist/opencode/.agents/skills/jahia-dev-review-cnd/scripts/check-cnd.d.mts +13 -0
- package/dist/opencode/.agents/skills/jahia-dev-review-cnd/scripts/check-cnd.mjs +198 -0
- package/dist/opencode/.agents/skills/jahia-dev-site-review/SKILL.md +70 -0
- package/dist/opencode/.agents/skills/jahia-dev-site-review/scripts/review-pages.mjs +85 -0
- package/dist/opencode/.agents/skills/jahia-dev-start-local/SKILL.md +18 -26
- package/dist/opencode/.agents/skills/jahia-orchestrate/SKILL.md +148 -0
- package/dist/opencode/.agents/skills/jahia-orchestrate/scripts/verify-pages.mjs +59 -0
- package/dist/opencode/.opencode/agents/cnd-child-nodes.md +74 -0
- package/dist/opencode/.opencode/agents/cnd-jahia-mixins.md +113 -0
- package/dist/opencode/.opencode/agents/cnd-numbers-dates.md +61 -0
- package/dist/opencode/.opencode/agents/cnd-string-selectors.md +94 -0
- package/dist/opencode/.opencode/agents/jahia-cnd-author.md +130 -0
- package/dist/opencode/.opencode/agents/jahia-dev-worker.md +264 -0
- package/dist/opencode/.opencode/agents/jahia-reviewer.md +105 -0
- package/dist/opencode/AGENTS.md +17 -8
- package/dist/windsurf/.windsurf/rules/jahia.md +15 -6
- package/dist/windsurf/.windsurf/skills/jahia/SKILL.md +5 -1
- package/dist/windsurf/.windsurf/skills/jahia-dev-accessibility/SKILL.md +3 -3
- package/dist/windsurf/.windsurf/skills/jahia-dev-build-component/SKILL.md +10 -7
- package/dist/windsurf/.windsurf/skills/jahia-dev-create-page-template/SKILL.md +59 -21
- package/dist/windsurf/.windsurf/skills/jahia-dev-create-template-set/SKILL.md +20 -47
- package/dist/windsurf/.windsurf/skills/jahia-dev-create-view/SKILL.md +3 -3
- package/dist/windsurf/.windsurf/skills/jahia-dev-define-content-type/SKILL.md +43 -486
- package/dist/windsurf/.windsurf/skills/jahia-dev-define-content-type/references/modeling-decisions.md +52 -0
- package/dist/windsurf/.windsurf/skills/jahia-dev-review-cnd/SKILL.md +79 -0
- package/dist/windsurf/.windsurf/skills/jahia-dev-review-cnd/scripts/check-cnd.d.mts +13 -0
- package/dist/windsurf/.windsurf/skills/jahia-dev-review-cnd/scripts/check-cnd.mjs +198 -0
- package/dist/windsurf/.windsurf/skills/jahia-dev-site-review/SKILL.md +70 -0
- package/dist/windsurf/.windsurf/skills/jahia-dev-site-review/scripts/review-pages.mjs +85 -0
- package/dist/windsurf/.windsurf/skills/jahia-dev-start-local/SKILL.md +18 -26
- package/dist/windsurf/.windsurf/skills/jahia-orchestrate/SKILL.md +148 -0
- package/dist/windsurf/.windsurf/skills/jahia-orchestrate/scripts/verify-pages.mjs +59 -0
- package/dist/windsurf/AGENTS.md +17 -8
- package/package.json +1 -1
|
@@ -14,35 +14,72 @@ A **page template** defines the full layout of a page. It is registered with `co
|
|
|
14
14
|
|
|
15
15
|
## Step 1 — Create the template file
|
|
16
16
|
|
|
17
|
-
Page templates live in `src/templates
|
|
17
|
+
Page templates live in `src/templates/<ModuleName>Template/`. Name the file `default.server.tsx`.
|
|
18
18
|
|
|
19
19
|
```tsx
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
20
|
+
import React from "react";
|
|
21
|
+
import { Area, AbsoluteArea, getChildNodes, buildNodeUrl, jahiaComponent } from "@jahia/javascript-modules-library";
|
|
22
|
+
import styles from "./template.module.css";
|
|
22
23
|
|
|
23
24
|
jahiaComponent(
|
|
24
25
|
{
|
|
25
26
|
componentType: "template", // "template" for full pages, not "view"
|
|
26
27
|
nodeType: "jnt:page", // always jnt:page for page templates
|
|
27
|
-
displayName: "
|
|
28
|
-
name: "
|
|
28
|
+
displayName: "Default Template",
|
|
29
|
+
name: "default",
|
|
30
|
+
},
|
|
31
|
+
({ "jcr:title": title }, { renderContext, mainNode }) => {
|
|
32
|
+
// Pages live under /sites/<key>/home — not directly under the site node
|
|
33
|
+
const siteHome = renderContext.getSite().getNode("home");
|
|
34
|
+
const navPages = getChildNodes(siteHome, -1, 0, n => n.isNodeType("jnt:page"));
|
|
35
|
+
const siteName = renderContext.getSite().getPropertyAsString("j:siteTitle") ?? renderContext.getSite().getName();
|
|
36
|
+
return (
|
|
37
|
+
<html lang="en">
|
|
38
|
+
<head>
|
|
39
|
+
<meta charSet="UTF-8" />
|
|
40
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
41
|
+
{/* jcr:title is the short page name — template appends site name for SEO */}
|
|
42
|
+
<title>{title}{siteName ? ` | ${siteName}` : ""}</title>
|
|
43
|
+
</head>
|
|
44
|
+
<body>
|
|
45
|
+
<a href="#main-content" className={styles.skipLink}>Skip to main content</a>
|
|
46
|
+
<header className={styles.header}>
|
|
47
|
+
<nav aria-label="Main navigation">
|
|
48
|
+
<ul className={styles.navList}>
|
|
49
|
+
<li key={siteHome.getPath()}>
|
|
50
|
+
<a href={buildNodeUrl(siteHome)} aria-current={siteHome.getPath() === mainNode.getPath() ? "page" : undefined}>
|
|
51
|
+
{siteHome.getPropertyAsString("jcr:title") ?? siteHome.getName()}
|
|
52
|
+
</a>
|
|
53
|
+
</li>
|
|
54
|
+
{navPages.map(page => (
|
|
55
|
+
<li key={page.getPath()}>
|
|
56
|
+
<a
|
|
57
|
+
href={buildNodeUrl(page)}
|
|
58
|
+
aria-current={page.getPath() === mainNode.getPath() ? "page" : undefined}
|
|
59
|
+
>
|
|
60
|
+
{page.getPropertyAsString("jcr:title") ?? page.getName()}
|
|
61
|
+
</a>
|
|
62
|
+
</li>
|
|
63
|
+
))}
|
|
64
|
+
</ul>
|
|
65
|
+
</nav>
|
|
66
|
+
</header>
|
|
67
|
+
<main id="main-content">
|
|
68
|
+
<h1 className={styles.pageTitle}>{title}</h1>
|
|
69
|
+
<Area name="pagecontent" />
|
|
70
|
+
</main>
|
|
71
|
+
<footer className={styles.footer}>
|
|
72
|
+
<AbsoluteArea name="footer" parent={renderContext.getSite()} />
|
|
73
|
+
<p className={styles.copyright}>{"© "}{renderContext.getSite().getName()}</p>
|
|
74
|
+
</footer>
|
|
75
|
+
</body>
|
|
76
|
+
</html>
|
|
77
|
+
);
|
|
29
78
|
},
|
|
30
|
-
({ "jcr:title": title }, { renderContext }) => (
|
|
31
|
-
<Layout title={title}>
|
|
32
|
-
<Area name="header" nodeType="namespace:header" />
|
|
33
|
-
<main style={{ maxWidth: "40rem", margin: "0 auto" }}>
|
|
34
|
-
<Area name="main" />
|
|
35
|
-
</main>
|
|
36
|
-
<AbsoluteArea
|
|
37
|
-
name="footer"
|
|
38
|
-
parent={renderContext.getSite()}
|
|
39
|
-
nodeType="namespace:footer"
|
|
40
|
-
/>
|
|
41
|
-
</Layout>
|
|
42
|
-
),
|
|
43
79
|
);
|
|
44
80
|
```
|
|
45
81
|
|
|
82
|
+
|
|
46
83
|
---
|
|
47
84
|
|
|
48
85
|
## Step 2 — Choose: Area vs AbsoluteArea
|
|
@@ -266,13 +303,14 @@ After deploying, the new template will appear in the **template selection** step
|
|
|
266
303
|
---
|
|
267
304
|
|
|
268
305
|
## Validation checklist
|
|
269
|
-
- [ ] File is in `src/templates/Page/`
|
|
270
306
|
- [ ] `componentType: "template"` and `nodeType: "jnt:page"`
|
|
271
307
|
- [ ] `name` is set (used in Jahia UI template picker)
|
|
308
|
+
- [ ] Skip link present: `<a href="#main-content">Skip to main content</a>`
|
|
309
|
+
- [ ] Nav built from `getChildNodes(site.getNode('home'), ...)` — pages are children of `home`, not of the site node
|
|
310
|
+
- [ ] `<h1>{title}</h1>` in the template — no `<h1>` in any component
|
|
311
|
+
- [ ] `<footer>` landmark always has visible content (never empty)
|
|
272
312
|
- [ ] Areas use a custom area node type (not bare `<Area name="..."/>`)
|
|
273
313
|
- [ ] Custom area type has `jmix:list`, `jmix:hiddenType`, and `orderable`
|
|
274
|
-
- [ ] `AbsoluteArea` uses `renderContext.getSite()` as parent
|
|
275
|
-
- [ ] Structural container nodes use `jmix:hiddenType` (hidden from picker)
|
|
276
314
|
- [ ] Decision made: page template vs sectioning component (see Step 4)
|
|
277
315
|
- [ ] `yarn build && yarn jahia-deploy` run and template appears in Jahia UI
|
|
278
316
|
|
|
@@ -119,66 +119,39 @@ yarn build && yarn jahia-deploy
|
|
|
119
119
|
|
|
120
120
|
Verify the module is installed:
|
|
121
121
|
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
-H "Content-Type: application/json" \
|
|
126
|
-
-d '{"query":"{ jcr { nodeByPath(path:\"/modules/<module-name>\") { name } } }"}'
|
|
122
|
+
```
|
|
123
|
+
tool: content.get
|
|
124
|
+
args: { "path": "/modules/<module-name>" }
|
|
127
125
|
```
|
|
128
126
|
|
|
129
|
-
Replace `<module-name>` with the `name` from `package.json`. The response should contain
|
|
127
|
+
Replace `<module-name>` with the `name` from `package.json`. The response should contain the module node.
|
|
130
128
|
|
|
131
129
|
---
|
|
132
130
|
|
|
133
131
|
## Step 5 — Create a new site in Jahia
|
|
134
132
|
|
|
135
|
-
After the module is deployed, create the site via
|
|
136
|
-
|
|
137
|
-
> ⚠️ **CRITICAL: syntax is `- createSite: ""`** — the empty string `""` after the colon is **mandatory**. Without it, Jahia returns HTTP 200 but silently creates nothing. Using `- createSite:` with nested properties is **wrong and will fail silently**.
|
|
133
|
+
After the module is deployed, create the site via MCP:
|
|
138
134
|
|
|
139
|
-
```bash
|
|
140
|
-
MODULE_NAME=<module-name> # value of "name" in package.json
|
|
141
|
-
|
|
142
|
-
curl -u root:root1234 \
|
|
143
|
-
-X POST \
|
|
144
|
-
-H "Content-Type: application/yaml" \
|
|
145
|
-
--data-binary "- createSite: \"\"
|
|
146
|
-
siteKey: ${MODULE_NAME}
|
|
147
|
-
title: \"My Site\"
|
|
148
|
-
defaultLanguage: en
|
|
149
|
-
serverName: localhost
|
|
150
|
-
templateSet: ${MODULE_NAME}" \
|
|
151
|
-
http://localhost:8080/modules/api/provisioning
|
|
152
135
|
```
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
siteKey: ${MODULE_NAME}
|
|
162
|
-
title: "My Site"
|
|
163
|
-
defaultLanguage: en
|
|
164
|
-
serverName: localhost
|
|
165
|
-
templateSet: ${MODULE_NAME}
|
|
166
|
-
EOF
|
|
167
|
-
|
|
168
|
-
curl -u root:root1234 -X POST -H "Content-Type: application/yaml" \
|
|
169
|
-
--data-binary @/tmp/create-site.yaml \
|
|
170
|
-
http://localhost:8080/modules/api/provisioning
|
|
136
|
+
tool: site.create
|
|
137
|
+
args: {
|
|
138
|
+
"siteKey": "<module-name>",
|
|
139
|
+
"title": "My Site",
|
|
140
|
+
"templateSet": "<module-name>",
|
|
141
|
+
"defaultLanguage": "en",
|
|
142
|
+
"serverName": "localhost"
|
|
143
|
+
}
|
|
171
144
|
```
|
|
172
145
|
|
|
146
|
+
Replace `<module-name>` with the `name` from `package.json`. `templateSet` must exactly match the deployed module name.
|
|
147
|
+
|
|
173
148
|
Verify the site was created:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
-X POST http://localhost:8080/modules/graphql \
|
|
178
|
-
-d "{\"query\":\"{ jcr { nodeByPath(path:\\\"/sites/${MODULE_NAME}\\\") { name } } }\"}"
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
tool: site.list
|
|
179
152
|
```
|
|
180
153
|
|
|
181
|
-
The
|
|
154
|
+
The site key must appear in the response. If it does not, check that `templateSet` exactly matches the deployed module name.
|
|
182
155
|
|
|
183
156
|
---
|
|
184
157
|
|
|
@@ -229,4 +202,4 @@ If anything goes wrong during setup or scaffolding, refer to the official Jahia
|
|
|
229
202
|
- [ ] Module directory created with expected structure
|
|
230
203
|
- [ ] `yarn install` completes without errors
|
|
231
204
|
- [ ] `yarn build && yarn jahia-deploy` succeeds — module appears at `/modules/<name>` in JCR
|
|
232
|
-
- [ ] Site created with `
|
|
205
|
+
- [ ] Site created with `site.create` — `site.list` confirms site key exists
|
|
@@ -100,11 +100,11 @@ Every `<img>` must have an `alt` attribute. Decorative images use `alt=""`. Info
|
|
|
100
100
|
// ❌ Missing alt
|
|
101
101
|
<img src={buildNodeUrl(props.image)} />
|
|
102
102
|
|
|
103
|
-
// ✅
|
|
104
|
-
<img src={buildNodeUrl(props.image)} alt={props.
|
|
103
|
+
// ✅ Alt from the image node's title (no extra CND property needed)
|
|
104
|
+
<img src={buildNodeUrl(props.image)} alt={props.image?.getPropertyAsString("jcr:title") ?? ""} />
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
The image node already has `jcr:title` (from `mix:title`). **Do not add `imageAlt (string) i18n`** to the CND — it forces editors to enter duplicate data.
|
|
108
108
|
|
|
109
109
|
### Colour contrast
|
|
110
110
|
|