Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

structure renaming issues #4

Open
sarangtc opened this issue Jan 15, 2020 · 1 comment
Open

structure renaming issues #4

sarangtc opened this issue Jan 15, 2020 · 1 comment

Comments

@sarangtc
Copy link

the given "class.tree.php" and "index.php" have the issue that not all items in structure can be customized.

To fix:
possibly add function to class:
public function get_options($id, $recursive = false) {
return $this->options;
}

and add following lines before first switch:
$options = $fs->get_options();
$nm = $options['data'][0];

and replace the following:
$v['id']
with
$v[$options['structure']['id']]

$v['rgt']
with
$v[$options['structure']['right']]

$v['lft']
with
$v[$options['structure']['left']]

'nm'
with
$nm

@sarangtc
Copy link
Author

I think the above will fix renaming anything EXCEPT 'id' => 'id' and the 'position' => 'pos' elements of structure
although I can't find any direct mentions of 'pos' in the class or the index.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant