掲示板

WebContent - sorting by structure fields

thumbnail
10年前 に Vitaliy Koshelenko によって更新されました。

WebContent - sorting by structure fields

Expert 投稿: 319 参加年月日: 11/03/25 最新の投稿
Hi, all.

Is it possible to sort WebContents by the values of it's structure fields?
(for example, if I create structure 'Product' with fields 'name', 'description', and then create some WebContent of this structure, may I sort these WebContents by 'name' field?)
I know, that content is stored as xml, and it's not possible to make sorting with an sql query, but may be there are some other solutions for this ?

Thanks, Vitaliy
thumbnail
10年前 に Milen Dyankov によって更新されました。

RE: WebContent - sorting by structure fields

Expert 投稿: 310 参加年月日: 12/10/30 最新の投稿
You mean sort the list in WCM section in ControlPanel or in your custom portlet?
Both are possible with some customizations just the approach is a bit different.
thumbnail
10年前 に Vitaliy Koshelenko によって更新されました。

RE: WebContent - sorting by structure fields

Expert 投稿: 319 参加年月日: 11/03/25 最新の投稿
In my custom portlet. Any ideas?
thumbnail
10年前 に Milen Dyankov によって更新されました。

RE: WebContent - sorting by structure fields

Expert 投稿: 310 参加年月日: 12/10/30 最新の投稿
All custom fields are stored in the index together with the article. Thus it should be possible to simply use one of the search methods in JournalArticleLocalServiceUtil that use the index and provide appropriate sort options.