[TYPO3-core] RFC #11431: Hook request for manipulating the pageID in getPage

Rupert Germann rupi at gmx.li
Sat Jun 27 12:11:43 CEST 2009


hi christian,

the double foreach() loop is not needed at this place. please fix that.
be aware that function getPage() can be called hundreds of times when
rendering big menus or sitemaps where the caching doesn't help.

greets
rupert


Christian Kuhn wrote:

> This is a SVN patch request.
> 
> Type: feature
> 
> Branches: trunk
> 
> BT reference:
> http://bugs.typo3.org/view.php?id=11431
> 
> Problem:
> For some special page overlay handling it might be usefull to manipulate
> the pageId before getting the row that belongs to the page.
> 
> Solution:
> Add a hook to t3lib/class.t3lib_page.php in method getPage() to change
> the uid of a page before it's requested from db.
> 
> Notes:
> This hook is in production use for a site with a lot of different
> language overlays with partially equal content for same countries for
> several month now.
> 
> 
> Thanks
> Christian



More information about the TYPO3-team-core mailing list