[opencms-dev] [opencms] How to specify multiple detail pages for a type
houcaoyu
houcaoyu at 163.com
Tue Dec 20 09:09:16 CET 2016
Hi Antonio ,
Thanks for your reply!
You mean divide detail pages into different subsitemaps , right?
This is a way to solve my problem , that's helpful , thanks very much!
Hou.
At 2016-12-19 19:03:08, "Antonio Cordeddu" <antoniocordeddu at coranto.it> wrote:
Hi Hou,
in order to get your requirement you have to set different detail pages.
For example you can achieve this target by following these steps:
1) create a folder of type subsitemap;
2) create a container page (to use to show the detail content) under the subsitemap folder;
3) create a folder of type "content_folder" under the subsitemap folder;
4) create a file of type "sitemap_config" under the content folder you have create at the step 3;
5) in this file you can set the detail page you have created a the step 2;
Hope this is useful for you.
Antonio Cordeddu
_______________________________________________
Coranto informatica di Antonio Cordeddu
Via Torricelli, 9 09047 Selargius (CA) - Italy
antoniocordeddu at coranto.ithttp://www.coranto.it
_______________________________________________
Or you can just create a content_folder
On 17/12/2016 09:09, houcaoyu wrote:
Hello
First sorry for my bad English.I'm Chinese.
I'm using Opencms 10.01.
I have two list pages for a same resource type , every page display different category.
The list pages are also detail pages for the resource type.
What I want is when clicking on a list item ,and jumping to the detail page ,
I want to specify which page to display the detail view.
The problem is now when I click on the list item ,it always jump to the default detail page.
I use this to generate the link of detail page.
<cms:link >${content.filename}</cms:link>"
And I also found that <cms:link> has a attribute named "detailPage" from the Tag Libray Reference.
"Set this attribute to link to a specific detail page."
But after I set the path of detail page(like "/page/d1/") to this attribute ,the list item can't be rendered.
I want to know what kind of value can pass to this attribute to specify a detail page.
And if you have other ways to solve my problem ,please share to me.
Thanks very much.
Hou.
_______________________________________________
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/20161220/fbd197cf/attachment.htm>
More information about the opencms-dev
mailing list