Wednesday 09 December 2009 7:05:25 am
I'm not sure what You mean with
I want user to be able to edit a folders body and use Embed object with same folder ...
If You want to embed objects into the body of a folder, that have this folder as parent, there will not be recursion. If You want to embed silblings and/or the folder this can cause recursions. I suggest to make an own template to show embedded objects. Include that template in the view of the folder. And use a counter couning every time this template is being included, to set a maximum account to the recursion.
Remember to initialise the counter on the outside (in the folder -view) and increment it on the inside (the own template) if your counter comes to a maximum, stop the complete functionality of the template. Making changes to the kernel is pretty seldom a good idea. especially the recursion lock is something i wouldn't touch.
www.all2e.com
|