[TYPO3-dev] pages_types doktype + shortcut
Dmitry Dulepov [typo3]
dmitry at typo3.org
Tue Sep 4 10:17:30 CEST 2007
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.
--
Dmitry Dulepov
TYPO3 freelancer / TYPO3 core team member
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
More information about the TYPO3-dev
mailing list