CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #36483

Does not respect TSconfig singlePid

Added by Felix Nagel about 1 year ago. Updated 8 months ago.

Status:New Start date:2012-04-23
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Votes: 0

Description

Linkhandler (latest trunk version or v1.0.5) does not respect defined preview pages by using pageTS like tx_myext.singlePid.

Example:
Extension news uses a second detail view page as preview page (which is configured to show hidden records by using previewHiddenRecords). The preview page is configured in BE by using tx_news.singlePid = xxx in pageTS. Sadly linkhandler breaks this functionality as its always uses the "normal" page id.

Problem is that the eID uses the tx_linkhandler_handler->main which uses the parameter configured in linkhandler TS only. I assume previewPageId (linkhandler pageTS) of singlePid (plugins pageTS) should be used here if set. That way the preview link would be configurable as it should be.


Related issues

related to Extension news - Support #36484: News preview and linkhandler problem Closed 2012-04-23

History

Updated by Felix Nagel about 1 year ago

I just was informed by Georg Ringer (author of EXT:news) that singlePid is no common TYPO3 standard. Sorry, my bad - I thought this was common usage because tt_news uses it too.

In that case it would be suitable to just merge linkhandler TS with previewPageId (linkhandler pageTS) to make it possible to have different preview pages. I assume this should be done in class.tx_linkhandler_service_eid.php. This way a second detail page for preview purposes (like needed for EXT:news) would be possible.

Perhaps the title of this issue should be changed to something like "Use previewPageId for eID preview"

Updated by Michael Klapper about 1 year ago

Felix Nagel wrote:

In that case it would be suitable to just merge linkhandler TS with previewPageId (linkhandler pageTS) to make it possible to have different preview pages.
Why do we need a second preview page?

Updated by Felix Nagel about 1 year ago

In my case (EXT:news) because the preview page needs different rights and TS. Im not quite sure if this is needed for other extensions too.

Updated by PAM 8 months ago

Hi,

Thanks for this wonderfull ext !

It would be really cool if linkhandler take account on tt_news single pid config.

tt_news single pid can be define by different ways :

- In the content element plugin (in the flexform)
- In the TS template (with TS setup plugin.tt_news.singlePid =)
- By category (singlepid for this category)

I'am ready to work on it, but I would need some hints on the best way to do it...

Also available in: Atom PDF