Nuxeo mailing list archives
[Nuxeo-tickets] [Nuxeo Repository] #1663: Only show documents in
the current language in content portlet.
Nuxeo Repository
trac at nuxeo.com
Thu Jun 1 12:41:36 CEST 2006
#1663: Only show documents in the current language in content portlet.
--------------------------------------+-------------------------------------
Reporter: joseluis.rosa at iavante.es | Owner: jmorliaguet
Type: enhancement | Status: new
Priority: P2 | Milestone: CPS 3.4.2
Component: CPSPortlets | Version: 3.4.0
Severity: normal | Keywords: content portlet language
--------------------------------------+-------------------------------------
The content portlet shows documents of all languages, we propose to:
1.- Add a new boolean widget (and field) with id 'language_filtered' in
the Content Portlet to "only show documents in the current language".
2.- Modify the script widget_portlet_content.pt to give getContentItems
the parameter 'language_filtered'.
3.- In the script getContentItems.py, add the lines
{{{
if kw.get('language_filtered', False):
query['Language']= context.translation_service.getSelectedLanguage()
}}}
before the statement:
{{{
brains = context.portal_catalog(**query)
}}}
Thank you very much.
--
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1663>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository
More information about the Nuxeo-tickets
mailing list
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.