[TYPO3-core] RFC #4885: AJAX pagetree update could be used when a new page is created

Benjamin Mack mack at xnos.org
Sun Feb 3 17:18:57 CET 2008


Hey Ingmar,

ok. I needed to refine some of the paths / parameters in the Tree 
object. Try it out with the new patch. Works like a charm for me.

Enjoy!

Ingmar Schlecht wrote:
> Awesome! I've been waiting for this.
> 
> But there seems to be a problem with the patch: I get an empty list 
> module in the tree-frame after renaming a page.
> 
> cheers
> Ingmar
> 
> Benjamin Mack schrieb:
>> Hey guys,
>>
>> this is a SVN patch request.
>>
>> Branches: trunk only
>>
>> BT reference: http://bugs.typo3.org/view.php?id=4885
>>
>> Problem:
>> When a new page is created, the page tree is triggered to be refreshed 
>> by a javascript call: top.content.nav_frame.refresh_nav(). This 
>> behaviour could also be achieved by the new AJAX pagetree. To speed up 
>> reloading, only the updated branch of the tree has to be loaded.
>>
>> Solution:
>> I first made the BEfunc getSetUpdateSignal so it could take additional 
>> parameters (here: the branch of the tree). Also, I didn't like the 
>> coding design that one function does both setting the update signal and 
>> retreiving the JS code for that. So I split that while keeping backwards 
>> compatibility.
>> Then I needed to fix the AJAX-call through using a absolute path for the 
>> ajax.php in the. I also added the new function "refreshBranch" which 
>> takes a list of pages to refresh. It takes the same AJAX call as with 
>> the expand / collapse code.
>> Additionally I implemented the first improvement when editing page 
>> properties. Try it out: Edit a page record and e.g. change the title. It 
>> will refresh only the branch.
>>
> 
> 

-- 
greetings,
benni.
-SDG-

www.xnos.de // www.xnos.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20080203_ajax_updatesignal.patch
Type: text/x-diff
Size: 8495 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080203/f17106fc/attachment-0001.patch 


More information about the TYPO3-team-core mailing list