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

Ingmar Schlecht ingmar at typo3.org
Sun Feb 3 21:34:20 CET 2008


Works nicely! +1 on testing and reading.

	Ingmar


Benjamin Mack schrieb:
> 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
> 


-- 
Ingmar Schlecht
TYPO3 Association Active Member


More information about the TYPO3-team-core mailing list