AEM Generate dynamic number based ID when creating a new content fragment? | Community
Skip to main content
Level 4
Sep 28, 2022 5:04 AM UTC
Solved

AEM Generate dynamic number based ID when creating a new content fragment?

Is it possible to configure content fragment models so that they generate unique dynamic file IDs when creating content fragments which could be used for querying purposes and all?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
lukasz-m
lukasz-mAccepted solution
New Participant
Sep 28, 2022 10:13 AM UTC

Hi @spidey1405,

This is not possible using OOTB AEM Content Fragments functionality. However there are some option that you could consider:

Personally, I would go with custom component, because it will clearly define that this dynamic ID is part of your content fragment structure/schema.

1 reply

lukasz-m
lukasz-mAccepted solution
New Participant
Sep 28, 2022 10:13 AM UTC

Hi @spidey1405,

This is not possible using OOTB AEM Content Fragments functionality. However there are some option that you could consider:

Personally, I would go with custom component, because it will clearly define that this dynamic ID is part of your content fragment structure/schema.

Translate