SilvaNews changes -- new features!

Andy Altepeter <[email protected]> Fri, 10 Aug 2007 11:40:01 -0500
Newsgroups gmane.comp.web.zope.silva.devel
Organization Bethel University
Message-ID <[email protected]>
Greetings,

In addition to the changes I've made to AutoTOC (mentioned in a post 
yesterday -- please test these!), I've also made many changes and feature 
enhancements to SilvaNews.  In a post on August 1 I outlined the refactoring 
changes I made (Phase 1).

This post is about Phase 2: new features.

I've added additional properties to News Items (both articles and agendas) 
that provide hints to viewers on how to display the items 'preview'.  This 
includes:
1) controlling if/where the preview is linked to (the article, somewhere else, 
not at all)
2) The 'intro' text that is displayed, which can be one of intro, teaser, or 
full content.  Intro is default, and uses Martijn's nice get_intro method.  
The intro and teaser methods can also be displayed with an image alongside.
3) Sometimes there needs to be intro text separate from the article itself.  
This is the teaser.  The teaser is a paragraph (line breaks are possible) 
that can be displayed in the news viewer.  The teaser is edited using an 
embedded wysiwyg editor, tiny mce.  You can add markup (bold, italic, 
underline) and links.

Additional Tool in Kupu:

I've also added a new tool in kupu, News Images, for articles and agendas.

With this tool, you can add multiple tagged images to a new item.  Viewers can 
be set to display the image with a certain tag.

With this functionality, you can have different images displayed in different 
viewers for the same news item.  This is great if, for example, the viewer on 
your institution homepage requires a 50x50 pixel image, and the news viewer 
on the alumni homepage can have larger 100x100 images.

So, please test this out.  I'd like to have this functionality merged back 
with the SilvaNews trunk at some point.  To test, you'll need to pull the 
following from svn (latest revisions are fine):

SilvaNews:
https://svn.infrae.com/SilvaNews/branch/SilvaNews_for_Silva2.0_aaltepet

Silva:
https://svn.infrae.com/Silva/branch/Silva2.0-aaltepet

So, please test, and let me know what you think.

In the SilvaNews product, there a readme 'NEWFEATURES-2.6.txt' that goes into 
a bit more detail about these enhancements.

Cheers,
Andy