[opencms-dev] Custom Module and Detail Page
Sergio Raposo Vargas
serrapos at gmail.com
Fri Jul 13 08:28:43 CEST 2012
I have another problem. I have a website where they will create large
quantities of news (4 daily), in this case we need to organize the news
into folders by year and month but in doing so stops working the detail
page.
Is there any solution to work the detail page with subfolders?
Regards
2012/7/12 Alexander Kandzior <alex at opencms.org>
> 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
>
>
>
>
--
*
*
Visitame en:
Comunidad OpenCms Hispano <http://www.opencmshispano.com>
HTML5 Paso a Paso <http://html5pasoapaso.blogspot.com/>
Saga Soluciones <http://www.sagasoluciones.com>
Template Saga <http://www.templatesaga.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120713/2454d40e/attachment.htm>
More information about the opencms-dev
mailing list