Take shortcuts into account
Ticket on Forge: https://forge.typo3.org/issues/68570
Author: Michael Schams Description: When no pages are selected to render tabs, the extension uses all subpages of the current page automatically. However shortcuts are not taken into account.
The attached patch fixes this issue.
Comments:
Stefan Galinski:
Hi Michael,
Thanks for this patch. Some things just from reading:
- Does this patch supports the alternative modes of setting a shortcut? (parent page, first subpage, ...)
- We are currently adding content to the shortcuts to display them in the tab menu. This behaviour will be removed by this change. So this needs to be configurable.
As you see there is some additional work to be done on this patch until we can merge it. However thanks for this contribution and the general idea how the extension can be improved. :-)
best regards Stefan Galinski
Simon Dawes:
Hi Stefan,
-
The patch currently does not support the alternative modes, I will look at adding these and we will submit an updated patch.
-
Yes I see that this would conflict. Is there a reason you use shortcut pages rather than a normal page? Is this a must have for you? (in which case there is no point in fixing 1)
-
The patch also deals with the "content_from_pid" option on a normal page types which may make sense to provide as a separate patch as this should not conflict with your current use of shortcuts.
Cheers Simon Dawes
Stefan Galinski:
I need the pages as shortcuts, because they also can have accessible subpages, but I don't the shortcut/parent pages itself accessible and so they need to redirect to the parent/overview page with the tabs. These could also be done via the htaccess, but it's not really comfortable and not usable for editors. I hope this clarifies why this solution is useful. :-)