[opencms-dev] OpenCms 9.0.1: Detail pages for lists sometimes don'twork
Schliemann, Kai
K.Schliemann at comundus.com
Wed Aug 6 10:50:51 CEST 2014
Hi Tobias, hi list,
I found the problem (not the solution).
The problem was, that I created subfolders in my /.content/blog/ folder in order to organize my blogs.
In the .config file I gave as name for creating resources that /.content/blog/ folder.
OpenCms seems to look up that folder to generate the detail page link and ignores subfolders.
I tried to add the blog resource type multiple times in my .config file each time with a different create folder. But OpenCms ignores the second entry.
So currently, when I want different lists of one resource type I have to handle it either with categories, a custom property or another extra field in my blog schema.
As this is acceptable, I would say, it would be a nice thing to consider the usage of subfolders for detail resources in the .content folder.
I probably open up a feature request on GitHub.
I wonder if nobody else had this before?
Have a nice day.
Best regards
Kai
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Tobias Karrer
Gesendet: Dienstag, 5. August 2014 23:39
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] OpenCms 9.0.1: Detail pages for lists sometimes don'twork
Hi Kai,
just a guess, to check: .config in your module folder still is of type "module_type"?
We had problems with detail pages once, when this was inexplicably of type "plain".
Other detail pages are working?
Best,
Tobias
Am 30.07.2014 08:26, schrieb Schliemann, Kai:
Hello everybody,
I currently have a strange problem.
I have a content type blog and blog list.
The blog list reads the blog items from a given folder and shows them as a list. That works fine.
I created a containerpage as blog detail page.
When I now click on the detail link of a block item, I get the default OpenCms template shown together with the message that I should create a detail page.
The weird thing is, that this already worked for that content type. I moved the detail page to another folder and it stopped working. I deleted and created a new detail page over and over again, but I cannot get it to work.
The same setting on another server with the same code base works as well.
Interesting is, that the created detail page seems to be empty. It looks like that:
<?xml version="1.0" encoding="UTF-8"?>
<AlkaconContainerPages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<http://www.w3.org/2001/XMLSchema-instance> xsi:noNamespaceSchemaLocation="opencms://system/modules/org.opencms.ade.containerpage/schemas/container_page.xsd">
<AlkaconContainerPage language="de"/>
</AlkaconContainerPages>
Thanks a lot for your help.
Best regards
Kai
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20140806/901f8998/attachment.htm>
More information about the opencms-dev
mailing list