Project

General

Profile

Actions

Feature #91925

closed

Get the configuration of the requested PageContentErrorHandler

Added by Aristeidis Karavas over 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Categorization API
Target version:
-
Start date:
2020-08-04
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

I tried to get the error Handling configuration in my controller in order to get the url or pid of the 404 page. I ended up using the PageContentErrorHandler where the attributes i need, are in there. The only problem is that i can not access them since the method is missing. So i added them myself. I do not know if this is done on purpose but if it is not, here is an example.


Files

Screenshot_5.png (13.4 KB) Screenshot_5.png Aristeidis Karavas, 2020-08-04 12:49
PageContentErrorHandler.php (6.7 KB) PageContentErrorHandler.php Aristeidis Karavas, 2020-08-04 12:52
Actions #1

Updated by Georg Ringer over 3 years ago

  • Status changed from New to Needs Feedback

What about just reading the site configuration and getting it from there?

Actions #2

Updated by Christian Kuhn about 2 years ago

  • Status changed from Needs Feedback to Closed

hey. i hope it's ok to close here for now: like georg, i don't really understand the use case, and accessing the site object seems to be a legit solution. in case this is no viable solution or the problem still exists, maybe let's restart with a fresh issue to elaborate on use cases.

Actions

Also available in: Atom PDF