Feature #87823

Introduce "class" to StaticRouteResolver configuration

Added by Soren Malling 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-03-02
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The StaticRouteResolver can handle "staticText" and "uri".

I suggest a new type being a class->method()

Reason for this:

The PSR middleware returns a Response once it's processed. The Request object is present and the current site including it's configuration.

I see some great use case for static routes like

/blog
/news

and similar, that can respond to routes that a editor doesn't need to create. The class can then render a typoscript object, alternative template or similar.

Alternatively, this issue can be closed with the descission of saying "you can implement such PSR yourself and should not be a core thing" - I will completely respect that descission.

History

#1 Updated by Soren Malling 5 months ago

  • Tracker changed from Bug to Feature

#2 Updated by Benni Mack 4 months ago

  • Status changed from New to Needs Feedback

Hey Soren,

sounds like a nice idea. I could imagine that this would first be part of an extension on how to see how this would work like. I'm sure we'd like to extend this, which could become part of a REST API, I'd say.

For now, let's close this ticket, and see how it evolves. We'll keep in touch in slack once the idea evolves. Sounds good?

#3 Updated by Soren Malling 4 months ago

That's fine with me :-)

Please close the ticket - I will create a concept in a separate extension and publish that for public testing :-)

#4 Updated by Anja Leichsenring 4 months ago

  • Status changed from Needs Feedback to Closed

as requested by author.

Also available in: Atom PDF