[opencms-dev] Map external data to OpenCMS seo urls

Asger Jensen akj at tmnet.dk
Tue Feb 25 14:28:26 CET 2014


Hi,

I’m looking to build a website where roughly half the content will come from a backend system, namely products and categories.

I’m not keen to synchronize these to OpenCMS, as the backend already provides the Webservice / EJB interfaces I need.

I can easily make the whole thing work, if I create a custom function (“DisplayProduct.jsp”) that takes a partnumber as a query parameter, look up the data, and render it accordingly.

However, I would like to get a nice looking URL for the data; and I’m willing to limit the product display urls to one subfolder, i.e.

/opencms/opencms/<etc>/products/AB123124

with AB123124 being the partnumber of the product.

Now, ideally, I would be able to register a 404 handler in the products subfolder, and use the PATH_INFO to get the missing bit (AB123124), but I can’t grog how I can do that nicely.

Is this possible?


Or could I somehow just register all the SEO urls from the backend somewhere, and have them all map to the DisplayProduct.jsp  (preferably not as mod_rewrite or some such).

Med venlig hilsen/Best Regards

Asger Jensen
Head of Production

E-mail: akj at tmnet.dk
Mobile: +45 2630 6502



Niels Hemmingsens Gade 9
1153 København K | Denmark
+45 3344 8555 | www.tmnet.dk

 




More information about the opencms-dev mailing list