[TYPO3-core] RFC: #13554: Preview of mount pages via backend

Ernesto Baschny [cron IT] ernst at cron-it.de
Thu Mar 4 09:00:27 CET 2010


Hi Georg,

Georg Ringer schrieb am 16.02.2010 14:16:

> Type: Feature (or bugfix?)
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=13554
> 
> Branches: Trunk (or 4.3, 4.2)

I agree that this is a bug and should also be applied to 4.3 and 4.2.

> Problem:
> Curently it is not possible to get previews of mount pages because the
> preview link is missing the mountpoint information. Therefore the error
> "The requested page didn't have a proper connection to the tree-root!
> (Illegal Mount Point found in rootline)" is displayed
> 
> Solution:
> If the wanted page is a mount page, fetch the needed information from
> the page record and apply the &MP variable
> 
> Additional information / To reproduce:
> - Create a new mount page, check the option "Substitute Mount Point
> (this page) with Mounted page:" and set a page to be mounted
> - View the page in the module "View"
> - See the error
> - Apply the patch
> - See the error go away

Your patch calculates the MP variable by hand. This won't handle more
complex scenarios as nested mount points, versioning overlay, etc. Since
we have a nice function already for calculating it (which is also used
in the FE), I made a patch that makes use of it.

Please test again, and give your opinions.

Related to that is a fix also for the "Show" click menu in the page tree
(as Susanne noted), which I will post as a new RFC right after this message.

Cheers,
Ernesto
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 13554-v2-preview-mountpages.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100304/0042a838/attachment-0001.asc>


More information about the TYPO3-team-core mailing list