Skip to content

Adding an Existing Content Tile whose view is "with tiles" leads to Javascript endless recursion #36

@sauzher

Description

@sauzher

Steps to reproduce

  • get a Page bar, set tiles view on it
  • get another page baz set tiles view on it
  • add a new tiles -> exsisting content
  • choose bar as content to be referred and save

Javascript keeps loading the bar tiles list even for the baz tile.

So the baz tile list returned is, in fact, the bar one which include the baz tile.
...so the baz tile list returned is, in fact, the bar one which include the baz tile.
...so the baz tile list returned is, in fact, the bar one which include the baz tile.
...so the baz tile list returned is, in fact, the bar one which include the baz tile.
...so the baz tile list returned is, in fact, the bar one which include the baz tile.
...

From the UX point of view it's indeed awful to include in a tile view some existing content with tiles view too. It leads to potential permissions issues, loops and, at the end, the appearance of the Reaper Man.

Should the product prevent the referring of contents with tiles view enabled?
Would it be useful to implement (js side) a maximum number of rendered rendered per content? (may be fifty or less?)

Browsers get completely stuck in seconds and an editor, any time, could fall into this brilliant idea.

Workaround if the Reaper Man has come

For anyone facing this issue is not too late:

  • do call tiles_management view on the context (i.e. http://localhost:8080/Plonetest/baz/tiles_management?managerId=defaultManager&ajax_load=true)
  • in the source code page you'll see an anchor tag pointing to the url that will delete the tile. The gliphy icons css is not loaded so the tag is completely hidden from rendering. Now Just look for something like:
<a class="plone-btn plone-btn-danger tileDeleteLink" 
     href="http://localhost:8080/Plonetest/baz/@@delete-tile/plone.app.standardtiles.existingcontent/58490ed9d34a4079b23f458d30e7c091">
  <i class="glyphicon glyphicon-remove" aria-hidden="true"></i>
</a>
  • Do follow the href url and confirm the delete in the form

alessandro.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions