Prodesign Webprojekte
Prodesign Webprojekte

Reputation: 23

Typo3 Mount Point Link

I am creating a Mountpoint subpage menü in Typoscript. As you can see in the picture "Max Tester 2" is the parent Element of the menu. So i create a subpages menu. All Sites under "Max Tester 2" will be shown in this menu. So i create a kind of listview. I am using mount points to show a image and a title in this menu from another page. This image and title is created via MASK extension in the pagesettings of the Linked mount page. Its already working! But my problem is I want to Link to the original page (where I define the image and the title) and not the the Mounted Page. Now when i klick on the Listview element "tester" i am navigating to the "tester" mount page (as you can see in the picture). But i want to navigate to the original page where i defined (title and image). Is this possible? so that i can use the content of a different page with mount point and also to change the link of the mounted page? so i need a mix of mount point and shortcut.

mount point

Upvotes: 0

Views: 244

Answers (1)

mvetter
mvetter

Reputation: 143

did you try this TypoScript Setup on the mounting point page?

config.MP_disableTypolinkClosestMPvalue = 1

Description: If set [MP_disableTypolinkClosestMPvalue], the typolink function will not try to find the closest MP value for the id.

Source: https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Setup/Config/Index.html#setup-config-mp-disabletypolinkclosestmpvalue

Maybe the option MP_disableTypolinkClosestMPvalue will help someone in the future.

In my case I'm trying to mount a page tree that has some restricted pages from a restricted site/domain to a different public site/domain.

In the public website I'm making the links point back to the restricted website, where the original pages actually reside and request the user to login. It worked for all typolinks so far with the option above.

If I use the option above, my challenge then is to make the pages that can be public not point back to the other restricted website, and only the restricted pages point back to the original password protected website.

I believe this will have to be solved by creating a new Link Handler or Link Browser to check if the webpage is restricted, it renders the restricted domain link, if the page is public, it renders the final mounting link of the public website. But this is a different topic than first asked.

https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/LinkHandling/Tutorials/CustomLinkBrowser.html

Upvotes: 0

Related Questions