Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Another path component after locale

$
0
0
Hi,

burningice wrote:
While the latter is more technical correct, there has been no projects AFAIK which have tried to implement a custom PageUrlProvider
So - finally I've been successful in putting my logic into a custom HttpModule. I queried for an exhibition via DataConnection, got a result, stripped off the exhibition shortcut from the incoming url path and Context.RewritePath to the stripped url. Worked fine and I landed on the expected page where I accessed my selected exhibition, which I had put into Context.Items in my HttpModule.

So far, so good. Of course - now things happened as I have expected: Page links within the page content are in usual internal format ("~/page(<ID>)") and are rendered to their friendly URLs. Now I wonder, if I can provide custom logic to this rendering process to have each link being rendered with the shortcut of my exhibition - to not loose my exhibition context.

In other words: can I modify URL rendering in a way to transform URLs from "~/page(<ID>)" to "/locale/<exhibition>/path/to/my/page" instead of "/locale/path/to/my/page"?

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>