Bug #62699

Page contains the same id multiple times when inserting the same Content Element with Insert Records more often

Added by Markus Klein almost 5 years ago. Updated 19 days ago.

Status:
Accepted
Priority:
Must have
Assignee:
-
Category:
Frontend
Start date:
2014-11-04
Due date:
% Done:

0%

TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
hard
Is Regression:
No
Sprint Focus:

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

Related to TYPO3 Core - Feature #40255: Simplify the creation of referenced content elements Accepted 2012-08-27

History

#1 Updated by Helmut Hummel almost 5 years ago

  • Category changed from Frontend to Content Rendering

What is your expectation? How should the rendered result be?

#2 Updated by Markus Klein almost 5 years ago

The rendered result should be prefixed.

Example:
InsertRecords content element uid = 1
Inserted content element uid = 34

Expected HTML <div id="c1c34" ...

#3 Updated by Riccardo De Contardi about 4 years ago

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>

#4 Updated by Markus Klein almost 4 years ago

  • 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

#5 Updated by Benni Mack over 2 years ago

  • Target version changed from 8 LTS to Candidate for patchlevel

#6 Updated by Markus Klein almost 2 years ago

  • Assignee deleted (Markus Klein)

#7 Updated by Susanne Moog almost 2 years ago

  • Category changed from Content Rendering to Frontend

#8 Updated by Daniel Kary 19 days ago

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.

#9 Updated by Markus Klein 19 days ago

This is not fluid related. The core does not provide the necessary information about the nesting.

Also available in: Atom PDF