[opencms-dev] Custom Module and Detail Page
Patric Dosch
patric.dosch at virtual-identity.com
Fri Jul 13 09:01:40 CEST 2012
Hey Alex, hey Markus...
I used option two in my projects.
I have reported two problems in this regard ... In the new system here:
https://github.com/alkacon/opencms-core/issues/35
https://github.com/alkacon/opencms-core/issues/36 (screenshots are missing)
This is also interesting in this context.
https://github.com/alkacon/opencms-core/issues/27
Is there anything new on this?
Regards, Patric
-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Alexander Kandzior
Gesendet: Donnerstag, 12. Juli 2012 17:46
An: 'The OpenCms mailing list'
Betreff: Re: [opencms-dev] Custom Module and Detail Page
Markus
Regaring your 2nd question:
- It is possible to have a certain resource type spread to multiple folders within the /.content/ hierarchy? This would be required to create collectors showing different articles, but using the same details page.
There are 2 options:
1. You create a subsite. The subsite will then have its own detail page and content folder. So you have 2 detail pages for the same content, one in each subsite. This would be a preferred solution to distinguish e.g. between news issues by different departments. I this scenario you could also set different read/write access to the different news folders.
2. You leave all resources in the same folder, but use a category to distinguish different types of e.g. news. There are ready made collectors for this which collect all news only of category A or B. There is also a category selection widget which you should use in you news XSD, so that the content manager can easily define the category of the news.
I recommend option 2 if you don't need the different read/write access.
Kind Regards,
Alex.
-------------------
Alexander Kandzior
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Markus Fischböck
Sent: Thursday, July 12, 2012 5:07 PM
To: opencms-dev at opencms.org
Subject: [opencms-dev] Custom Module and Detail Page
Hi everyone!
I was wondering if there are any specifications or tutorials to get a details page to work with my custom module.
>From what i've gathered from various tutorials and the wiki was the
following:
- Create a own module as well as the module_config (.config) file and adjust the all Resourcetype values accordingly to my requirements (Typename, Name within the .content directory, Pattern)
- Create a config folder within the module and the related "content.sitemap.config" file. I've supplied (type name, folder, pattern and formatter settings)
- Create a details page using the sitemap editor for the related resourcetype.
Further i've created a configurable list (from the provided opencms
module) and configured it to show a listing of the designated resources.
Problem is that the links are not interchanged to the details page, but still point to the /.content/<resourcetype>/xy_00001.html files.
Another question would be if it is possible to have a certain resource type spread to multiple folders within the /.content/ hierarchy. This would be required to create collectors showing different articles, but using the same details page.
Example:
ResourceType: CustomNews
should be stored in /.content/news
as well as in /.content/archive
It would work to have 2 different configurable lists showing those contents, but I'm not able to map it to the same details page.
Any help appreciated!
Thanks in advance and best regards,
Markus Fischboeck
_______________________________________________
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
_______________________________________________
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
More information about the opencms-dev
mailing list