Re: [Zope] using smart folder to pick certain number of news articles to display in the home page

2007-07-02 Thread Thomas Bennett
See:  http://www.zope.org/Members/EIONET/RDFSummary  This product is old but I 
don't think it needs any maintenance since it still does the simple but good 
job it was designed to do.

I have a different situation but you might want to implement this.  This is 
with just Zope not Plone.  All our news articles are in CoreBlog, you would 
use CoreBlog2 for Plone, unless I'm not mistaken SmartFolders has support for 
RSS included.

   CoreBlog has built in support for RSS feeds of articles. Using RDFSummary I 
run a nightly cron job, which now can be done with clock server, to call the 
update function in RDFSummary.  The RDFSummary is set to grab the newest four 
entries with each update.  I expect you would have to choose a different 
number of entries and then parse it or through some other method find the 
results of your search of the RSS results.

Of course you would need to replace with proper syntax for Plone since my site 
is just Zope.  rssnews_headlines is the id of my RDFSummary.


   
 

   
 
   


Example from the RDFSummary Product page, dtml and then ZPT example.

  
  
  




  


  


or if you prefer ZPT: 

   
   
   
   
   
   More ...
   



Results may be seen on http://www.library.appstate.edu/ at the bottom center 
of the page under Library News:.

Click on the view tab of the RDFSummary to see all of the available fields 
that may be included in your page.  You may also want to look at RDFGrabber

Thomas

On Saturday 30 June 2007 09:56, kamal hamzat wrote:
> Hello All,
>
> I have folders containing the news articles, I have created a smart folder
> in the root that allows me to display these articles in the homepage of my
> website. How can I can I set up the smart folder so that just the first two
> articles that matched my criteria from each folder are display in the home
> page.
>
> Thanks.
>
> Kamal

-- 

Thomas McMillan Grant Bennett   Appalachian State University
Operations & Systems AnalystP O Box 32026
University Library  Boone, North Carolina 28608
(828) 262 6587

They say a picture is worth a thousand words.  As videos could be 25 pictures 
per second and might last several minutes, how many words is that? 
- Linux Journal, July 2007

Library Systems Help Desk: http://www.library.appstate.edu/help/

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] using smart folder to pick certain number of news articles to display in the home page

2007-07-01 Thread Andreas Jung



--On 1. Juli 2007 12:44:05 +0100 kamal hamzat <[EMAIL PROTECTED]> 
wrote:



Thanks  so much Martjin.

I would appreciate it if anybody that has done something similar could
share their experience with me.




Better ask on the plone-users list.

-aj

pgp5WzSdrtc8y.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] using smart folder to pick certain number of news articles to display in the home page

2007-07-01 Thread kamal hamzat

Thanks  so much Martjin.

I would appreciate it if anybody that has done something similar could share 
their experience with me.


Regards.

kamal


- Original Message - 
From: "Martijn Pieters" <[EMAIL PROTECTED]>

To: "kamal hamzat" <[EMAIL PROTECTED]>
Cc: 
Sent: Saturday, June 30, 2007 7:50 PM
Subject: Re: [Zope] using smart folder to pick certain number of news 
articles to display in the home page




On 6/30/07, kamal hamzat <[EMAIL PROTECTED]> wrote:
I have folders containing the news articles, I have created a smart 
folder
in the root that allows me to display these articles in the homepage of 
my
website. How can I can I set up the smart folder so that just the first 
two
articles that matched my criteria from each folder are display in the 
home

page.


You can't. Smart Folders cannot handle such a complex scenario. You'll
have to create a custom python script and template combination that
makes the query, sorts it by path and filters out any results over 2
per folder. This'll require some python coding.

--
Martijn Pieters



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] using smart folder to pick certain number of news articles to display in the home page

2007-06-30 Thread Martijn Pieters

On 6/30/07, kamal hamzat <[EMAIL PROTECTED]> wrote:

I have folders containing the news articles, I have created a smart folder
in the root that allows me to display these articles in the homepage of my
website. How can I can I set up the smart folder so that just the first two
articles that matched my criteria from each folder are display in the home
page.


You can't. Smart Folders cannot handle such a complex scenario. You'll
have to create a custom python script and template combination that
makes the query, sorts it by path and filters out any results over 2
per folder. This'll require some python coding.

--
Martijn Pieters
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )