Bug #62699
open
Page contains the same id multiple times when inserting the same Content Element with Insert Records more often
Added by Markus Klein about 10 years ago.
Updated over 5 years ago.
Description
Using Insert Records (IR) multiple times on the same page and each IR-CE insert the same content, the id (which comprises of c + content.uid) is rendered multiple times on the page.
This allows a user to invalidate the generated HTML code.
Related issues
1 (1 open — 0 closed)
- Category changed from Frontend to Content Rendering
What is your expectation? How should the rendered result be?
The rendered result should be prefixed.
Example:
InsertRecords content element uid = 1
Inserted content element uid = 34
Expected HTML <div id="c1c34" ...
It is still present in 6.2.13:
my test:
in page I add a new content element, type "Insert record"(ID=52) and inside I put a CE from another page (CE has ID=3)
result:
<div id="c52" class="csc-default">
<div id="c3" class="csc-default">
... ... ...
</div>
</div>
In the same page, I add anoher "Insert record" CE (ID=53), with inside the same CE (ID=3)
result:
<div id="c53" class="csc-default">
<div id="c3" class="csc-default">
... ... ...
</div>
</div>
- Status changed from New to Accepted
- Assignee changed from Patrick Broens to Markus Klein
- Priority changed from Should have to Must have
- Target version set to 8 LTS
- Complexity set to hard
- Target version changed from 8 LTS to Candidate for patchlevel
- Assignee deleted (
Markus Klein)
- Category changed from Content Rendering to Frontend
Still in 9.5.8 with Fluid. Possible Solution could be to add a variable if record is inserted. This way we clould add an prefix to the id if it is inside an shortcut.
This is not fluid related. The core does not provide the necessary information about the nesting.
Also available in: Atom
PDF