[TYPO3-dev] pages_types doktype + shortcut

Lucas Birk t3dev at birkit.com
Tue Sep 4 11:37:28 CEST 2007


Dmitry Dulepov [typo3] wrote:
> Hi!
>
> Lucas Birk wrote:
>   
>> Accidentally posted this to the wrong list. Hope this is the right place...
>>
>> I have created a new doktype in my TCA so that I can have a page that 
>> behaves like a shortcut but looks different in the page tree. I have 
>> successfully added the page doktype and my new icon but the shortcut 
>> does not work; the FE-page show normally without redirecting to the 
>> selected shorcut page.
>>     
>
> Of course. How typo3 is supposed to know that it is a shortcut? :) You 
> just provided visual representation through TCA but this is only backend 
> forms and icons. It does not change FE behavior. You will have to XCLASS 
> functions in typo3/sysext/cms/tslib/class.tslib_fe.php to analyze 
> doktype and perform actions accordingly. I suggest you to look to 
> function getPageAndRootline() there.
>
>   
Thanks for the info. I had no idea where to look!
For now I set the page type to "sys" and the id above 200. This way a 
FE-user is redirected to the root page. The ability to select a shortcut 
would be best so I'll try your suggestions.
Lucas.




More information about the TYPO3-dev mailing list