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
Hello all,

given a site, which acts as an information plattform for exhibitions. Each exhibition basically has the same navigation structure and (nearly) the same pages - with just different content. How could I achieve, that:
  • I do not need to recreate a page per exhibition
  • Exhibitions are maintained through custom DataTypes
  • The exhibition is kept in the URL as the first path component next to the locale component
means: the URL looks like http://domain.tld///path/to/my/page
  • locale: the locale (what else)
  • exhibition: a shortcut referring to a record from the exhibition data type
After digging through some code (not very long, but got along so far), I thought about doing this by either adding a custom IHttpModule (like CphCloud.Packages.UrlAlias) or by adding a custom PageUrlProvider. I tend to the latter one due to building internal page links.

Am I digging in the right direction? Any other idea? (I know of RegisterPathInfoUsage - but exhibition path component MUST be at first place after locale)

Cheers
Mario

Viewing all articles
Browse latest Browse all 2540

Trending Articles



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