PiranhaCMS / piranha.core.docs

Official documentation for Piranha CMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove references to PageTypeRouteAttribute

jasonterando opened this issue · comments

Hi, I found this Piranha tutorial page on securing pages using Piranha CMS. It refers to an attribute called PageTypeRoute which looks like it got added in this commit back in 2017, but is no longer in the master branch.

Did this attribute get moved or is there an alternate technique I should be using to set up per-page authorization?

Thanks!

Yes it’s depcrecated! Now it’s called ContentTypeRouteAttribute and is used for both pages and posts. I’ll move this issue to the documentation repo and rename it for clarity.

Thanks for the prompt reply!

Opening this again so we remember to update the docs 🙂

This technique is obsolete, the entire page should be removed.