Did not find a how-to for your problem?

Ask me to write the how-to post by writing to the mailing-list at cps-devel [@] lists [.] nuxeo [.] com or writing to me to joseluisdelarosa+cpshowto [@] gmail [.] com. Note: I'll keep all conversations on the official mailing list.

Tuesday, March 4, 2008

How to get show the SharedCalendar's "pretty" title on a Navigation Portlet

When you enable CPSSharedCalendar on a CPS Site, you can create Shared Calendars anywhere in the site. If you have some Navigation Portlet on the site, this shows the identifier of the calendar instead of the pretty Title.

If you can show the Title instead of the Identifier you can do it by patching the getNavigationItems script, including this piece of code

if ptype == 'CPS Calendar':
title = str(context.restrictedTraverse(base_url + rpath).title_or_id())
title = object['title_or_id']

before appending the item to the folder_items dictionary.

No comments: