Code Monkey home page Code Monkey logo

Comments (5)

NamelessCoder avatar NamelessCoder commented on June 25, 2024

This one must be solved by catching the case of copy/move/reference when not relative to a current content element. TYPO3 will use values such as 542x1 for page UID 542 colPos 1 - this must be parsed by the ConfigurationProvider's methods that are executed when content is moved/copied.

cmd[tt_content][950][copy]=169x1

Is an example argument structure.

from flux.

farconada avatar farconada commented on June 25, 2024

In the testing website (the one that you have admin access).
Try it:

  • go page id = 29
  • copy CE uid = 60
  • go page id = 14
  • paste inside
    Then:
  • nested content inside the copied element in page 14 isnt copied
  • if you go back to page 29 and look at element uid=60 then it is modified

It is a real problem cause if you copy/paste elements and your original ones get modified then you could screw up you site

from flux.

farconada avatar farconada commented on June 25, 2024

seems a litle db script fix the problem
$query = "SELECT * FROM tt_content where tx_flux_column like '%:%'";
$result = mysql_query($query) or die('Consulta fallida: ' . mysql_error());

while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
$columnArray = explode(':', $line['tx_flux_column']);
$query = "update tt_content set tx_flux_column = '".$columnArray[0]."' where uid =" . $line['uid'];
mysql_query($query);
}

from flux.

NamelessCoder avatar NamelessCoder commented on June 25, 2024

Thanks for the snippet - just one comment: you should also set the tx_flux_parent field to the UID part of the old value - i.e. $columnArray[1]. I assume this field was set correctly on your installation but there could be some older installations there the field has a NULL value and this will cause problems if not also updated.

from flux.

NamelessCoder avatar NamelessCoder commented on June 25, 2024

Closing the issue. Thanks again for sharing your solution!

from flux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.