Hi @kolluax
1. Why fd:version is 1.1 vs 2.1 on fragments
- fd:version is the Adaptive Forms version flag:
- 1.1 -> Foundation Adaptive Forms (AF v1, components under /libs/fd/af/components/...).
- 2.1 -> Core Components Adaptive Forms (AF v2, components under /libs/core/fd/components/form/... etc).
- What actually controls it?
The template / creation wizard you use: - If the fragment is created using a Foundation-based fragment template, the wizard sets fd:version = 1.1.
- If it's created using a Core Components–based fragment template, it sets fd:version = 2.1 (like the examples project).
- Why examples show 2.1 and yours show 1.1?
Your "new fragment" is being created with the old AF v1 fragment flow, while the examples use the AF v2 (Core Components) fragment template.
Result: - 1.1 fragments behave as legacy/foundation fragments and are not treated as AF v2 fragments.
- Only 2.1 fragments are listed in AF v2 fragment pickers / core-component forms.
- Fix:
- Create fragments using the Core Components fragment template / wizard (e.g. "Adaptive Form Fragment (Core Components)" or equivalent in your environment). Those fragments will automatically get fd:version = 2.1 and behave like the examples.
2. Why you only see components from fd/af/components and how to use your project components
Right now your fragment is AF v1, so:
- The fragment's root panel/layout uses a Foundation policy, whose "Allowed Components" are all under fd/af/components/.…
- That's why the side panel only shows components from fd/af/components.
To point this to your project components, use the same pattern as Sites/core components:
Step 1 – Create proxy components in your project
For each core form component you want to expose, create a proxy component, for example:
/apps/<your-project>/components/forms/textinput
sling:resourceSuperType = "core/fd/components/form/textinput/v1/textinput"
jcr:title = "Text Input (Project)"
componentGroup = "Your Project – Forms"
Repeat for other components you need.
Step 2 – Attach them via the fragment/template policy
Even though the fragment wizard doesn't ask for a template, it internally uses one. You configure allowed components on that template's policy:
- Go to Tools -> General -> Templates.
- Locate the fragment template used for your forms:
- AF v1 fragment template for Foundation fragments, or
- AF v2 fragment template for Core components fragments.
- Open the template, select the Form Container / root layout and open the Design dialog (Policy).
- In Allowed Components, add your project component groups (e.g. "Your Project – Forms") and optionally remove the old fd/af/components groups.
After saving:
- New fragments created with that template will show your project components in the side panel.
- If you're moving to Core Components, do this on the AF v2 fragment template and use only your proxy components, not /libs/fd/af/components.
3. How to make it behave exactly like the examples
- Enable / use Core Components–based fragment creation
Use the same AF v2 fragment template the examples use, so new fragments get fd:version = 2.1. - Create proxy components under /apps/<your-project>/components/... with sling:resourceSuperType pointing to the core form components.
- Update the AF v2 fragment template policy to:
- Allow only your project's proxy components.
- Optionally hide/disable legacy fd/af/components.