Recursive Field Data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blueprint
    Active Community Member
    • Jan 2019
    • 223

    Recursive Field Data

    Take the 'DocumentFolder' entity, if I wanted to display the heirarchical path as a separate field, how could I do this?

    Consider the following made up folder tree:

    Root Folder
    Sub Folder 1
    Sub Sub Folder 1
    Sub Sub Sub Folder 1

    I would like to be able to access a `path` field as a varchar containing the following:

    Root Folder >> Sub Folder 1 >> Sub Sub Folder 1 >> Sub Sub Sub Folder 1

    Can this be achieved easily, using existing formulae?
  • blueprint
    Active Community Member
    • Jan 2019
    • 223

    #2
    I've done it in PHP by using a Hook, in the `beforeSave` function.

    Comment

    Working...