I am currently working on what i call inherit feature.
User when initialize the behavior will be able to select the values to be inherite from parent to son and if this inherit will work for create/copy or move.
I have mostly finished this feature but need testing. It’s in the repo under the branch ‘inherited’. I will also try to clean up the code and sorry for the fb()s ( firephp calls ) that i forgot to remove in the previous releases.
This will end up with v0.2.5 in the middle of this week.
Known issues are here. Thanks all for the testing.
Note: you can not create a root node for single root trees,even though there a Createroot action in this release.So to use this extension you must insert a root node to database with this values as is:
All the above except the text must have this values.
And lastly, sorry for the forgotten fb calls in previous versions
I’ve followed all the steps you described in documentation and above but can’t see the tree itself rendered…the example.php view only renders the action buttons for me, even after I added the first node manually and setted my model property ‘hasManyRoots’ => true
No errors displayed, only Rename, Delete, Simple Create, Cut, Copy, Paste and Create Root buttons visible
Could you please give me a hint?
I’m using Yii 1.1.3r2247, Windows XP SP3, WAMP Server 2.0
Thanks in advance!
#Edit - not to forget, I’m using the sql schema provided by Samdark
I’m trying to move a root node inside another root node and I’m getting the folowing error:
Fatal error: Call to a member function getAttribute() on a non-object in /home/ofertagora/public_html/protected/extensions/EJNestedTreeActions/actions/Movenode.php
moving leaves is working
I’m not sure but the problem seems to call parent() for a root node which results in non object…so the subsequent call fails…i’m saying this because i ran into problems when calling ->parent() for a root node in another form
ps. yes, i can create another node inside the root with the same name, but in this case, i have 25 subnodes inside the node that is supposed to be moved