Issue Bug Accepted Orphaned

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

Markus Klein 11/04/14, 16:58 updated 05/11/26, 08:54

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] Page contains the same id multiple times when inserting the same Content Element with Insert Records more often Resolves: #62699 Releases: main

History 10

  1. Helmut Hummel commented and changed category <span data-processor="relativetime" data-value="2014-11-04T17:04:23+00:00" > 11/04/14, 17:04 </span>

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

  2. Markus Klein commented <span data-processor="relativetime" data-value="2014-11-04T17:17:31+00:00" > 11/04/14, 17:17 </span>

    The rendered result should be prefixed.

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

    Expected HTML <div id=“c1c34” …

  3. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2015-06-10T23:43:02+00:00" > 06/10/15, 23:43 </span>

    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. Markus Klein changed status New Accepted assigned to Markus Klein priority Should have Must have target version Complexity hard <span data-processor="relativetime" data-value="2015-09-25T13:20:37+00:00" > 09/25/15, 13:20 </span>

  5. Daniel Kary commented <span data-processor="relativetime" data-value="2019-08-06T15:27:00+00:00" > 08/06/19, 15:27 </span>

    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.

  6. Markus Klein commented <span data-processor="relativetime" data-value="2019-08-06T15:49:34+00:00" > 08/06/19, 15:49 </span>

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

  7. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2026-05-11T08:54:05+00:00" > 05/11/26, 08:54 </span>

    Alas, this still happens on the latest TYPO3 main :(
    Would it be possible to strip the “frame” div of the inner (referenced) element – Like when you select the “no frame” [frame_class] option?