[opencms-dev] Getting detail-pages working

GreatScott ariccia79 at gmail.com
Wed May 8 11:15:23 CEST 2013


I don't know if this is what you want, I'll try to explain how I rewrite urls
for detail pages.
I've added in my schemas of every content a custom field:

<xsd:element name="Url" type="OpenCmsString" minOccurs="1" maxOccurs="1" />

I've mapped it (urlName is a system keywords):

<mapping element="Url" mapto="urlName"/>


The URL field rewrites the OpenCMS generated url.

Example in blog.xsd:
URL field: my-beaufitul-content-detail
URL address: www.mysite.com/blog/my-beaufitul-content-detail

URL field: (empty)
URL address: www.mysite.com/blog/fjnhxieyndgehjlsal (==> OpenCMS generated
link).


Hope this help.

Ciao



-----
<<<<<===============================
Roads? Where we're going, we don't need roads.
===============================>>>>>

Italy
--
View this message in context: http://opencms.996256.n3.nabble.com/Getting-detail-pages-working-tp23218p23233.html
Sent from the OpenCMS mailing list archive at Nabble.com.



More information about the opencms-dev mailing list