[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 21:23:49 CET 2008


Hey,

the attached patch finally works :)

Benjamin Mack wrote:
> 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.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Before posting to this list, please have a look to the posting rules
> on the following websites:
> 
> http://typo3.org/teams/core/core-mailinglist-rules/
> http://typo3.org/development/bug-fixing/diff-and-patch/ 
> _______________________________________________
> TYPO3-team-core mailing list
> TYPO3-team-core at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-core

-- 
greetings,
benni.
-SDG-

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


More information about the TYPO3-team-core mailing list