[opencms-dev] Link to detail page of custom XML content

Thorsten Duhn duhn at regio-gmbh.de
Wed Apr 8 09:33:16 CEST 2015


Hello,

once again the same strange issue ("UUID instead of talking URI?", 
2013-11-27) – but even harder this time. I do have structed XML content 
with list and detail page. Schema has mapping from Title to urlName, 
content files got created afterwards (and touched several times), link 
in list formatter is rendered by <cms:link>${event.filename}</cms:link>, 
and all I get is a link containing filename to the .xml-file. On 
clicking the created .xml-link Firefox wants to display XML, but claims 
that the HTML output is not well-formed XML (of course, it's not).

Even more strange, from three different content types the first is 
rendering named, talking URLs.

Detail pages for the content types are configured, but may be the 
problem, that detail page is only configured in subsitemap, while 
content is created in base content folder? Subsitemap is also configured 
that detail pages should be prefered, pages showing this issue, 
rendering wrong URLs, are all inside this subsitemap (by now all pages are).

XML Content/rendered link: .../.content/events/event_00001.xml
Sitemap configuration:     .../de/.content/.config

Again, nevertheless it works for this:
                        .../.content/news/news_00001.xml
having such a link:    .../de/nachrichten/Dummy-Eintrag-1/

As schemas, formatters and configuration are mostly copy&paste with some 
extensions, I don't know any more where to find problems cause. What is 
necessary? Schema mapping (in case touching/rewriting XML), detail page 
configuration, what else?

Regards,
Thorsten




More information about the opencms-dev mailing list