Breadcrumb in joinSelf Table

Breadcrumb in joinSelf Table

MarekAdamMarekAdam Posts: 30Questions: 9Answers: 1

Link to test case: https://editor.datatables.net/examples/advanced/joinSelf.html
Description of problem: I have table like joinSelf example. Cols: id, name, parent. Parent id is the parent in this table (recurency). Is there posibility to show in column all name parents like Breadcrumb on websites? Like aaa>bbb>ccc>ddd
If not i will make new col in mysql and do it as 'static' text.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    I'm not actually sure how that would be expressed in SQL. I think it would need a recursive query to keep looking up the tree. Recursive queries are not something that the Editor server-side libraries currently support.

    Allan

  • MarekAdamMarekAdam Posts: 30Questions: 9Answers: 1

    ok, i make it manually.
    editor.on( 'initSubmit', function (e, action)
    and call by ajax php script with recursive function

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Careful you don't end up with an infinite loop and DDoS your own server :)

    Allan

Sign In or Register to comment.