Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only one placeholder per component is supported #7

Open
galiana opened this issue Apr 23, 2020 · 0 comments
Open

Only one placeholder per component is supported #7

galiana opened this issue Apr 23, 2020 · 0 comments

Comments

@galiana
Copy link

galiana commented Apr 23, 2020

If I create 2 or more dynamic placeholders in the same component, the ID of the second ends with _1, _2, and so on.
The save event, deleting orphan components, deletes the rendering on these placeholders.
The same issue occurs if we use the uniqueKey parameter, as it is added as _"xxx" to the placeholder.
An MVC view example:
for (int i = 0; i < 5; i++)
{


@Html.Sitecore().DynamicPlaceholder("ContentLayout",false)

}
}

galiana pushed a commit to galiana/dynamic-placeholders that referenced this issue Apr 23, 2020
…upporting multiple placeholder in the samme component and using the uniqueKey.

Solving issue Fortis-Collection#7
galiana pushed a commit to galiana/dynamic-placeholders that referenced this issue Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant