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.

Friday, May 9, 2008

How to get Themes code

Usually, you build portal layouts using CPSSkins. When you finally have the layout, you could need to get the XML code to complete your product.

You can do it by exporting the Portlet and Theme Tools on ZMI Setup Tool. So, you can get the XML files needed to complete your product profile.

Other way to save our work is to export the theme within CPSSKins, following these steps: Themes manager -> Select your theme -> Export this theme -> Export on zexp format.
With this format you can import then directly within CPSSkins.

Best the first way. ;)

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.

Tuesday, January 15, 2008

How to import a local directory

Well... we have just developed a CPS product to import a local directory to a CPS Site.
You can download it using this svn url: