Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Hagith
Copy link
Contributor

@Hagith Hagith commented Jun 8, 2012

Hi,

I think that static routes should be taken into account even if there exists document matching current path.
Then will be possible to switch existing static document to module action and provide a posibility to manage editables on the page.

I know that we can use action view helper or provide snippet. Also I know it will make a minor influence on performance. But I think that's much elegant and elastic solution.

Example:
I'm creating blog plugin for pimcore (https://github.com/rafalgalka/pimcore-plugin-blog).
There will be:

  • default page with list of entries with pagination
  • sidebar with snippets placeholders for blog categories, tags, calendar, etc.

Plugin installer will create static route for "/blog/" path. When you create document with same path blog action will not be executed.

@brusch
Copy link
Member

brusch commented Jun 8, 2012

Hi,
This is a wanted behavior. Documents always have the highest priority. The idea behind is to make it easier for editors, because they often do not understand or know what routes are.

One possible way to make this possible, would be to implement it like redirects, where it is possible to set the priority to 99.

Cheers

@brusch brusch closed this Jun 8, 2012
@Hagith
Copy link
Contributor Author

Hagith commented Jun 8, 2012

Hmmm, i'm little confused...

Tell me one more thing. So why are static routes if there is no possibility to use them with defined pages that, as you told, are easier for editors? How in this approach dynamic content should be provided?

Thanks.

@Hagith
Copy link
Contributor Author

Hagith commented Jun 12, 2012

OK, ignore my previous question. I just forgot that document can have module/controller/action defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants