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

Commented Feature: Feature request: Make url transformation pluggable [1075]

$
0
0
As it is today, there are two built-in methods for handling url-generation based on datatype ids. One is the ~/page(id) and the other is ~/media(id), which will be expanded to human readable and SEO friendly urls at runtime/page generation.

Now, it would be good if 1) the implementation for these "url expansion mechanisms" were changeable and 2) that you could register own url-generators so, lets say ~/blog(id) or ~/news(id) would be recognized at runtime when pages are being served.

Especially point 2, would be the first step towards being able to let editors insert links via the Content Editor that points to datatypes just as easily as to pages and media. How? Because urls to pages and media is handled through the KeyTemplatedXhtmlRenderer-attribute which decorates the Type Interface. For a page it looks like this [KeyTemplatedXhtmlRenderer(XhtmlRenderingType.Embedable, "{label}")]

So you could have the same attribute on a News Type looking like this [KeyTemplatedXhtmlRenderer(XhtmlRenderingType.Embedable, "{label}")] and voila.
Comments: ** Comment from web user: macj2k **

This would be __GOLD__.

I'm working on an Intranet for a company right now that has all kind of integration points with employee, department, and office profiles; and tons of cross linking between them. If I could implement something like:

/employee(Id)
/office(Id)
/department(Id)

that would save me a lot of headache and drastically reduce the risk of errors. I'm about to launch the 2nd phase of the project in the next couple weeks, but we've already started Discovery for the 3rd phase so it wouldn't surprise me at all if they decided to add more "profiles".


Viewing all articles
Browse latest Browse all 2540

Trending Articles



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